• R/O
  • SSH
  • HTTPS

slashdotjp: Commit


Commit MetaInfo

Révision1111 (tree)
l'heure2009-04-06 18:03:25
Auteurtach

Message de Log

Add "rel=nofollow" to authors journals and friends journals page

Change Summary

Modification

--- slashjp/trunk/plugins/Journal/journal.pl (revision 1110)
+++ slashjp/trunk/plugins/Journal/journal.pl (revision 1111)
@@ -453,9 +453,13 @@
453453 ? $journal_reader->getDiscussion($article->[6], 'commentcount')
454454 : 0;
455455
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+
456460 # should get comment count, too -- pudge
457461 push @collection, {
458- article => balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 }),
462+ article => $stripped_article,
459463 date => $article->[0],
460464 description => strip_notags($article->[2]),
461465 topic => $topics->{$article->[5]},
@@ -526,10 +530,12 @@
526530 my $commentcount = $article->[6]
527531 ? $journal_reader->getDiscussion($article->[6], 'commentcount')
528532 : 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});
529536
530- # should get comment count, too -- pudge
531537 push @collection, {
532- article => balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 }),
538+ article => $stripped_article,
533539 date => $article->[0],
534540 description => strip_notags($article->[2]),
535541 topic => $topics->{$article->[5]},
Afficher sur ancien navigateur de dépôt.