Add lj:reply-count tag to /data/rss feeds.
Patch by kareila.
diffs (19 lines):
diff -r 68d6e4987b55 -r c661a0bd950a cgi-bin/ljfeed.pl
--- a/cgi-bin/ljfeed.pl Sat Jul 25 13:54:06 2009 +0000
+++ b/cgi-bin/ljfeed.pl Sat Jul 25 14:20:02 2009 +0000
@@ -271,6 +271,7 @@ sub make_feed
tags => [ values %{$logtags->{$itemid} || {}} ],
security => $it->{security},
posterid => $it->{posterid},
+ replycount => $logprops{$itemid}->{'replycount'},
};
push @cleanitems, $cleanitem;
push @entries, $entry_obj;
@@ -355,6 +356,7 @@ sub create_view_rss
$ret .= " <lj:mood>" . LJ::exml($it->{mood}) . "</lj:mood>\n" if
$it->{mood};
$ret .= " <lj:security>" . LJ::exml($it->{security}) .
"</lj:security>\n" if $it->{security};
$ret .= " <lj:poster>" . LJ::exml($poster->user) . "</lj:poster>\n"
unless LJ::u_equals($u, $poster);
+ $ret .= " <lj:reply-count>$it->{replycount}</lj:reply-count>\n";
$ret .= "</item>\n";
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog