madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22191: LJSUP-11909: Fast Repost feature

Committer: sbelyaev
LJSUP-11909: Fast Repost feature
U   trunk/cgi-bin/LJ/S2/FriendsPage.pm
U   trunk/cgi-bin/LJ/S2/RecentPage.pm
Modified: trunk/cgi-bin/LJ/S2/FriendsPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/FriendsPage.pm	2012-06-07 09:50:33 UTC (rev 22190)
+++ trunk/cgi-bin/LJ/S2/FriendsPage.pm	2012-06-07 10:44:09 UTC (rev 22191)
@@ -282,7 +282,8 @@
         if (LJ::Entry::Repost->substitute_content( $entry_obj, $content )) {
             next ENTRY unless $entry_obj->visible_to($remote);
 
-            $friend   = $poster = $entry_obj->journal;
+            $friend   = $entry_obj->journal;
+            $poster   = $entry_obj->poster;
 
             $posters{$posterid} = $poster;
             $friends{$friendid} = $friend;

Modified: trunk/cgi-bin/LJ/S2/RecentPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/RecentPage.pm	2012-06-07 09:50:33 UTC (rev 22190)
+++ trunk/cgi-bin/LJ/S2/RecentPage.pm	2012-06-07 10:44:09 UTC (rev 22191)
@@ -193,7 +193,10 @@
 
             $lite_journalu = UserLite($entry_obj->journal);
             $apu_lite{$entry_obj->journalid} = $lite_journalu;
+            $apu{$entry_obj->journalid} = $entry_obj->journal;
+
             if (!$apu_lite{$posterid}) {
+                $apu{$posterid} = $entry_obj->poster;
                 $apu_lite{$posterid} = UserLite($entry_obj->poster);
             }
         }
@@ -289,6 +292,7 @@
         }
         my $pickw = LJ::Entry->userpic_kw_from_props($logprops{$itemid});
         my $userpic = Image_userpic($pu, 0, $pickw);
+        warn $pu->user;
 
         if ($security eq "public" && !$LJ::REQ_GLOBAL{'text_of_first_public_post'}) {
             $LJ::REQ_GLOBAL{'text_of_first_public_post'} = $text;

Tags: livejournal, madeon, pm, sbelyaev
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