Add "rel=nofollow" to authors journals and friends journals page
@@ -453,9 +453,13 @@ | ||
453 | 453 | ? $journal_reader->getDiscussion($article->[6], 'commentcount') |
454 | 454 | : 0; |
455 | 455 | |
456 | + my $stripped_article = balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 }); | |
457 | + $stripped_article = noFollow($stripped_article) | |
458 | + if ($constants->{journal_force_nofollow}); | |
459 | + | |
456 | 460 | # should get comment count, too -- pudge |
457 | 461 | push @collection, { |
458 | - article => balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 }), | |
462 | + article => $stripped_article, | |
459 | 463 | date => $article->[0], |
460 | 464 | description => strip_notags($article->[2]), |
461 | 465 | topic => $topics->{$article->[5]}, |
@@ -526,10 +530,12 @@ | ||
526 | 530 | my $commentcount = $article->[6] |
527 | 531 | ? $journal_reader->getDiscussion($article->[6], 'commentcount') |
528 | 532 | : 0; |
533 | + my $stripped_article = balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 }); | |
534 | + $stripped_article = noFollow($stripped_article) | |
535 | + if ($constants->{journal_force_nofollow}); | |
529 | 536 | |
530 | - # should get comment count, too -- pudge | |
531 | 537 | push @collection, { |
532 | - article => balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 }), | |
538 | + article => $stripped_article, | |
533 | 539 | date => $article->[0], |
534 | 540 | description => strip_notags($article->[2]), |
535 | 541 | topic => $topics->{$article->[5]}, |