madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22195: LJSUP-12508: Counterfor repost work inco...

Committer: sbelyaev
LJSUP-12508: Counterfor repost work incorrectly
U   trunk/cgi-bin/LJ/Entry/Repost.pm
Modified: trunk/cgi-bin/LJ/Entry/Repost.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry/Repost.pm	2012-06-07 12:25:34 UTC (rev 22194)
+++ trunk/cgi-bin/LJ/Entry/Repost.pm	2012-06-07 12:29:05 UTC (rev 22195)
@@ -309,17 +309,20 @@
     foreach my $reposter (@$repostersids) {
         my $u = LJ::want_user($reposter);
 
-        $users->{$u->user} = { 'userhead' => $u->userhead_url,
+        $users->{$u->user} = { #'userhead' => $u->userhead_url,
                                'url'      => $u->journal_base, };
     }   
-    $reposters_info->{'last'} = $repostersids->[-1];
+    $reposters_info->{'last'}   = $repostersids->[-1];
     $reposters_info->{'nomore'} = 1 if $reposters_count < 25;
+    $reposters_info->{'count'}  = __get_count($entry->journal, 
+                                              $entry->jitemid);
 
     __put_reposters_list( $journalid,
                           $jitemid,
                           $reposters_info, 
                           $lastuserid );
 
+    
     return $reposters_info; 
 }
 
@@ -487,6 +490,10 @@
         ${$opts->{'eventtime'}} = $entry_obj->eventtime_mysql;
     }
 
+    if ($opts->{'event_raw'}) {
+        ${$opts->{'event_raw'}} = $original_entry_obj->event_raw;
+    }
+
     if ($opts->{'event'}) {
         ${$opts->{'event'}} = $original_entry_obj->event_html;
     }

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