madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22372: LJSUP-12619: Change sorting order in "re...

Committer: sbelyaev
LJSUP-12619: Change sorting order in "reposted by' list
U   trunk/cgi-bin/LJ/Entry/Repost.pm
Modified: trunk/cgi-bin/LJ/Entry/Repost.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry/Repost.pm	2012-07-03 09:08:31 UTC (rev 22371)
+++ trunk/cgi-bin/LJ/Entry/Repost.pm	2012-07-03 09:32:22 UTC (rev 22372)
@@ -338,7 +338,7 @@
                                         $jitemid,
                                         $lastrequest );
 
-    my $reposters_info = { users => {} };
+    my $reposters_info = { users => [] };
     my $users = $reposters_info->{'users'};
 
     my $reposters_count = scalar @$repostersids;
@@ -351,8 +351,7 @@
 
     foreach my $reposter (@$repostersids) {
         my $u = LJ::want_user($reposter);
-
-        $users->{$u->user} = { 'url' => $u->journal_base, };
+        push @$users, { user => $u->user,  'url' => $u->journal_base, };
     }  
  
     $reposters_info->{'last'}   = $lastrequest + 1;

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