madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22060: LJSUP-12148: JSON-RPC

Committer: sbelyaev
LJSUP-12148: JSON-RPC
U   trunk/cgi-bin/LJ/Entry/Repost.pm
Modified: trunk/cgi-bin/LJ/Entry/Repost.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry/Repost.pm	2012-05-25 08:26:49 UTC (rev 22059)
+++ trunk/cgi-bin/LJ/Entry/Repost.pm	2012-05-25 08:40:36 UTC (rev 22060)
@@ -365,6 +365,10 @@
         $entry_obj = $entry_obj->original_post;
     }
 
+    if ($u->equals($entry_obj->journal)) {
+        return LJ::API::Error->get_error('same_user'); 
+    }
+
     my $journalid = $entry_obj->journalid;
     my $jitemid   = $entry_obj->jitemid;
 

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