[Slashdotjp-dev 1571] [1102] add rss_item_suffix to story description

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2009年 4月 2日 (木) 19:19:45 JST


Revision: 1102
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1102
Author:   tach
Date:     2009-04-02 19:19:45 +0900 (Thu, 02 Apr 2009)

Log Message:
-----------
add rss_item_suffix to story description

Modified Paths:
--------------
    slashjp/trunk/Slash/XML/RSS/RSS.pm


-------------- next part --------------
Modified: slashjp/trunk/Slash/XML/RSS/RSS.pm
===================================================================
--- slashjp/trunk/Slash/XML/RSS/RSS.pm	2009-04-02 09:57:16 UTC (rev 1101)
+++ slashjp/trunk/Slash/XML/RSS/RSS.pm	2009-04-02 10:19:45 UTC (rev 1102)
@@ -463,6 +463,9 @@
 				if $constants->{rdfbadge};
 			$extra .= "<p><a href=\"$action\">Read more of this story</a> at $constants->{sitename}.</p>"
 				if $action && !$constants->{tweak_japanese};
+			$extra .= getData('rss_item_suffix', { story => $story }, 'article')
+				if $constants->{tweak_japanese};
+			$extra =~ s/\s+/ /g;
 			# add poll if any
 			$extra .= pollbooth($story->{qid},1, 0, 1) if $story->{qid};
 			$encoded_item->{description} .= $self->encode($extra) if $extra;



Slashdotjp-dev メーリングリストの案内
Zurück zum Archiv-Index