svnno****@sourc*****
svnno****@sourc*****
2009年 4月 2日 (木) 14:23:00 JST
Revision: 1094 http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1094 Author: tach Date: 2009-04-02 14:23:00 +0900 (Thu, 02 Apr 2009) Log Message: ----------- remove force content:encoded insertion 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-01 13:37:27 UTC (rev 1093) +++ slashjp/trunk/Slash/XML/RSS/RSS.pm 2009-04-02 05:23:00 UTC (rev 1094) @@ -27,7 +27,6 @@ use strict; use Slash; use Slash::Utility; -use Slash::Display; use XML::RSS; use base 'Slash::XML'; @@ -346,7 +345,6 @@ $self->{rdfitemdesc_html} = 1; my $encoded = $self->rss_item_description($item->{$key}); # TODO: $self->encode() do NOT work in Unicode-mode. - # TODO: If it works properly, we don't need CDATA quote. $encoded_item->{content}->{encoded} = "<![CDATA[${encoded}]]>"; $self->{rdfitemdesc_html} = $rdfitemdesc_html_bak; } @@ -459,10 +457,6 @@ if ($version >= 1.0) { my $desc = $self->rss_item_description($item->{description} || $story->{introtext}); if ($desc) { - $encoded_item->{description} = $desc . getData('rss_story_readmore', { - 'link' => $encoded_item->{link}, - discussion => $story->{discussion}, - }, 'index'); my $extra = ''; # disabled on slashdot.jp (2008-09-09, tach) @@ -476,11 +470,6 @@ $extra .= pollbooth($story->{qid},1, 0, 1) if $story->{qid}; $encoded_item->{description} .= $self->encode($extra) if $extra; - # 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'); } }