Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r19732: LJSUP-9270: Create RSS feed for friends ...

Committer: amyshkin
LJSUP-9270: Create RSS feed for friends page
U   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" )

Tags: livejournal, pl, zilogic
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments