[Slashdotjp-dev 1580] [1111] Add "rel=nofollow" to authors journals and friends journals page

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 4月 6日 (月) 18:03:25 JST


Revision: 1111
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1111
Author:   tach
Date:     2009-04-06 18:03:25 +0900 (Mon, 06 Apr 2009)

Log Message:
-----------
Add "rel=nofollow" to authors journals and friends journals page

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


-------------- next part --------------
Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2009-04-06 08:56:39 UTC (rev 1110)
+++ slashjp/trunk/debian/changelog	2009-04-06 09:03:25 UTC (rev 1111)
@@ -28,8 +28,9 @@
     "journal_force_nofollow" has set.
   * Enable to select adding "rel=nofollow" to anchor or not using regex by
     constants "nofollow_exclude_regex"
+  * Add "rel=nofollow" to authors journals and friends journals page
 
- -- Taku YASUI <tach****@osdn*****>  Mon,  6 Apr 2009 07:42:30 +0000
+ -- Taku YASUI <tach****@osdn*****>  Mon,  6 Apr 2009 09:02:43 +0000
 
 slash (2.5.0.233-7) unstable; urgency=low
 

Modified: slashjp/trunk/plugins/Journal/journal.pl
===================================================================
--- slashjp/trunk/plugins/Journal/journal.pl	2009-04-06 08:56:39 UTC (rev 1110)
+++ slashjp/trunk/plugins/Journal/journal.pl	2009-04-06 09:03:25 UTC (rev 1111)
@@ -453,9 +453,13 @@
 			? $journal_reader->getDiscussion($article->[6], 'commentcount')
 			: 0;
 
+		my $stripped_article = balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 });
+		$stripped_article = noFollow($stripped_article)
+			if ($constants->{journal_force_nofollow});
+
 		# should get comment count, too -- pudge
 		push @collection, {
-			article		=> balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 }),
+			article		=> $stripped_article,
 			date		=> $article->[0],
 			description	=> strip_notags($article->[2]),
 			topic		=> $topics->{$article->[5]},
@@ -526,10 +530,12 @@
 		my $commentcount = $article->[6]
 			? $journal_reader->getDiscussion($article->[6], 'commentcount')
 			: 0;
+		my $stripped_article = balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 });
+		$stripped_article = noFollow($stripped_article)
+			if ($constants->{journal_force_nofollow});
 
-		# should get comment count, too -- pudge
 		push @collection, {
-			article		=> balanceTags(strip_mode($article->[1], $article->[4]), { deep_nesting => 1 }),
+			article		=> $stripped_article,
 			date		=> $article->[0],
 			description	=> strip_notags($article->[2]),
 			topic		=> $topics->{$article->[5]},



Slashdotjp-dev メーリングリストの案内
Back to archive index