[Slashdotjp-dev 1576] [1107] Force to add "rel=nofollow" to anchor on displayJournal() when constants "journal_force_nofollow" has set.

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2009年 4月 6日 (月) 14:01:23 JST


Revision: 1107
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1107
Author:   tach
Date:     2009-04-06 14:01:23 +0900 (Mon, 06 Apr 2009)

Log Message:
-----------
Force to add "rel=nofollow" to anchor on displayJournal() when constants "journal_force_nofollow" has set.

Modified Paths:
--------------
    slashjp/trunk/plugins/Journal/journal.pl


-------------- next part --------------
Modified: slashjp/trunk/plugins/Journal/journal.pl
===================================================================
--- slashjp/trunk/plugins/Journal/journal.pl	2009-04-03 09:13:08 UTC (rev 1106)
+++ slashjp/trunk/plugins/Journal/journal.pl	2009-04-06 05:01:23 UTC (rev 1107)
@@ -666,7 +666,7 @@
 
 		my $stripped_article = balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 });
 		$stripped_article = noFollow($stripped_article)
-			unless $karma > $constants->{goodkarma};
+			unless $karma > $constants->{goodkarma} && !$constants->{journal_force_nofollow};
 
 		# should get comment count, too -- pudge
 		push @{$collection->{article}}, {



Slashdotjp-dev メーリングリストの案内
アーカイブの一覧に戻る