[Slashdotjp-dev 1172] [699] Fix story postfix inserting

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 7月 16日 (水) 13:27:55 JST


Revision: 699
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=699
Author:   tach
Date:     2008-07-16 13:27:55 +0900 (Wed, 16 Jul 2008)

Log Message:
-----------
Fix story postfix inserting

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm	2008-07-15 13:04:50 UTC (rev 698)
+++ slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm	2008-07-16 04:27:55 UTC (rev 699)
@@ -457,18 +457,19 @@
 
 	if ($version >= 1.0) {
 		my $desc = $self->rss_item_description($item->{description} || $story->{introtext});
-		$item->{'content:encoded'} = ($item->{description} || $story->{introtext}) . getData('rss_story_readmore', {
-			link	=> $encoded_item->{link},
-			discussion	=> $story->{discussion},
-		}, 'index');
 		if ($desc) {
-			$encoded_item->{description} = slashDisplay("rss_item_description", {
-				desc		=> $desc,
-				more		=> $story->{bodytext},
-				link		=> $action,
-			}, { Return => 1, Nocomm => 1 });
+			$encoded_item->{description} = $desc . getData('rss_story_readmore', {
+				'link'		=> $encoded_item->{link},
+				discussion	=> $story->{discussion},
+			}, 'index');
 			# add poll if any
 			$encoded_item->{description} .= pollbooth($story->{qid},1, 0, 1) if $story->{qid};
+
+			# add content:encoded for slashdot.jp
+			$item->{'content:encoded'} = ($item->{description} || $story->{introtext}) . getData('rss_story_readmore', {
+				'link'		=> $encoded_item->{link},
+				discussion	=> $story->{discussion},
+			}, 'index');
 		}
 	}
 


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