Committer: amyshkin
LJSUP-9270: Create RSS feed for friends pageU trunk/cgi-bin/ljfeed.pl
Modified: trunk/cgi-bin/ljfeed.pl =================================================================== --- trunk/cgi-bin/ljfeed.pl 2011-08-16 03:42:38 UTC (rev 19731) +++ trunk/cgi-bin/ljfeed.pl 2011-08-16 04:20:40 UTC (rev 19732) @@ -606,7 +606,8 @@ my $posteru = LJ::load_userids( map { $_->{posterid} } @$cleanitems); # output individual item blocks - foreach my $it ( @$cleanitems ) { + foreach my $it ( @$cleanitems ) { + my $obj = shift @$entrylist; my $itemid = $it->{itemid}; my $ditemid = $it->{ditemid}; my $poster = $posteru->{$it->{posterid}}; @@ -633,7 +634,7 @@ } $entry->add_link( - $make_link->( 'alternate', 'text/html', "$j->{'link'}$ditemid.html" ) + $make_link->( 'alternate', 'text/html', $obj->url ) #"$j->{'link'}$ditemid.html" ) ); $entry->add_link( $make_link->( 'self', 'text/xml', "$api/?itemid=$ditemid" )