Шурик (fortl) wrote in changelog,
Шурик
fortl
changelog

[livejournal] r18305: LJSUP-7825 Read any journals (XML-RPC)

Committer: aurbanowich
LJSUP-7825 Read any journals (XML-RPC)

U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-02-15 08:37:20 UTC (rev 18304)
+++ trunk/cgi-bin/ljprotocol.pl	2011-02-15 09:59:40 UTC (rev 18305)
@@ -2618,7 +2618,11 @@
 
     ### shared-journal support
     my $posterid = $u->{'userid'};
-    my $ownerid = $req->{journalid} || $flags->{'ownerid'};
+    my $ownerid = $flags->{'ownerid'};
+    if( $req->{journalid} ){
+        $ownerid = $req->{journalid};
+        $uowner = LJ::load_userid( $req->{journalid} );
+    }
     
     my $dbr = LJ::get_db_reader();
     my $sth;

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