madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22349: LJSUP-12754: Incorrect display of repost...

Committer: sbelyaev
LJSUP-12754: Incorrect display of reposts
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-06-29 07:01:56 UTC (rev 22348)
+++ trunk/cgi-bin/ljprotocol.pl	2012-06-29 07:53:37 UTC (rev 22349)
@@ -3912,9 +3912,7 @@
         my $evt = {};
         $evt->{'itemid'} = $itemid;
 
-        # now my own post, so need to check for suspended prop
-        if ($jposterid != $posterid) {
-            my $entry = LJ::Entry->new_from_row(
+        my $entry = LJ::Entry->new_from_row(
                 'journalid' => $ownerid,
                 'jitemid'   => $itemid,
                 'allowmask' => $mask,
@@ -3924,6 +3922,20 @@
                 'anum'      => $anum,
             );
 
+        my $content =  { 'original_post_obj' => \$entry,
+                         'journalid'         => \$ownerid,
+                         'itemid'            => \$itemid,
+                         'allowmask'         => \$mask,
+                         'posterid'          => \$jposterid,
+                         'eventtime'         => \$eventtime,
+                         'security'          => \$sec,
+                         'anum'              => \$anum,
+                         'reply_count'       => \$replycount,};
+
+        LJ::Entry::Repost->substitute_content( $entry, $content );
+
+        # now my own post, so need to check for suspended prop
+        if ($jposterid != $posterid) {
             next if($entry->is_suspended_for($u));
         }
 

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