[dw-free] Add number of received comments to RSS feeds
[commit: http://hg.dwscoalition.org/dw-free/rev/c661a0bd950a]
http://bugs.dwscoalition.org/show_bug.cgi?id=1467
Add lj:reply-count tag to /data/rss feeds.
Patch from LiveJournal; prepared for Dreamwidth by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1467
Add lj:reply-count tag to /data/rss feeds.
Patch from LiveJournal; prepared for Dreamwidth by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/ljfeed.pl
-------------------------------------------------------------------------------- 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"; } --------------------------------------------------------------------------------