[Slashdotjp-dev 1191] [718] fix

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 7月 23日 (水) 20:51:45 JST


Revision: 718
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=718
Author:   tach
Date:     2008-07-23 20:51:45 +0900 (Wed, 23 Jul 2008)

Log Message:
-----------
fix

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


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm	2008-07-23 11:23:03 UTC (rev 717)
+++ slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm	2008-07-23 11:51:45 UTC (rev 718)
@@ -597,6 +597,11 @@
 		my($word, $query) = ($1, $2);
 		my @args = ($query);
 		$word =~ s{/}{_}g;
+		if ($word =~ /^(recent|friends|posters)/) {
+			$word = "top_$word";
+		} elsif ($word eq "rss") {
+			$word = "top_recent_rss";
+		}
 		if ($word =~ /^(.+)_rss$/) {
 			$word = $1;
 			push @args, "content_type=rss";

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-23 11:23:03 UTC (rev 717)
+++ slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm	2008-07-23 11:51:45 UTC (rev 718)
@@ -324,6 +324,10 @@
 					if $item->{'time'};
 				$encoded_item->{dc}{creator} = $self->encode($item->{creator})
 					if $item->{creator};
+				$encoded_item->{dc}{source} = $self->encode($item->{source})
+					if $item->{source};
+				$encoded_item->{dc}{relation} = $self->encode($item->{relation})
+					if $item->{relation};
 			}
 			$encoded_item->{dc}{source} = $item->{source}
 				if $item->{source};


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