[Slashdotjp-dev 1171] [698] Add content:encoded for story main rss

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 7月 15日 (火) 22:04:51 JST


Revision: 698
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=698
Author:   tach
Date:     2008-07-15 22:04:50 +0900 (Tue, 15 Jul 2008)

Log Message:
-----------
Add content:encoded for story main rss

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/DB/Static/MySQL/MySQL.pm
    slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm
    slashjp/branches/2.5.0.192/debian/changelog


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/DB/Static/MySQL/MySQL.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/DB/Static/MySQL/MySQL.pm	2008-07-14 11:53:56 UTC (rev 697)
+++ slashjp/branches/2.5.0.192/Slash/DB/Static/MySQL/MySQL.pm	2008-07-15 13:04:50 UTC (rev 698)
@@ -86,7 +86,7 @@
 	my $topic = $options->{topic};
 
 	my $select = "stories.stoid AS stoid, sid, title, stories.tid AS tid, primaryskid, time,
-		dept, stories.uid AS uid, commentcount, hitparade, introtext, bodytext, stories.qid as qid";
+		dept, stories.uid AS uid, commentcount, hitparade, introtext, bodytext, stories.qid as qid, discussion";
 
 	my $from = "stories, story_text, story_topics_rendered";
 

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-14 11:53:56 UTC (rev 697)
+++ slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm	2008-07-15 13:04:50 UTC (rev 698)
@@ -457,6 +457,10 @@
 
 	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,

Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-07-14 11:53:56 UTC (rev 697)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-07-15 13:04:50 UTC (rev 698)
@@ -13,8 +13,9 @@
   * Add "readmore" link for journal top rss and journal rss
   * use $constants->{sitepublisher} when $constants->{rdfpublisher} does not
     exist on creating RSS
+  * Add content:encoded for story main rss
 
- -- Taku YASUI <tach****@osdn*****>  Mon, 14 Jul 2008 11:53:09 +0000
+ -- Taku YASUI <tach****@osdn*****>  Tue, 15 Jul 2008 13:04:00 +0000
 
 slash (2.5.0.192-15) unstable; urgency=low
 


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