madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22256: LJSUP-12531: Repost: Error: Not able to ...

Committer: sbelyaev
LJSUP-12531: Repost: Error: Not able to create new entry
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-15 11:05:06 UTC (rev 22255)
+++ trunk/cgi-bin/LJ/Entry/Repost.pm	2012-06-15 11:17:22 UTC (rev 22256)
@@ -124,9 +124,18 @@
                 'tz'          => $timezone,
               );
 
+    warn "----------------------------";
+    warn "request " . LJ::D(%req);
+
     # move to LJ::API
     my $res = LJ::Protocol::do_request("postevent", \%req, \$err, $flags);
 
+    $flags->{u} = undef;
+    warn "flags: " . LJ::D($flags);
+    warn "result: " . LJ::D($res);
+    warn "error: $err" if $err;
+    warn "---------------------------------";
+
     my $fail = !defined $res->{itemid} && $res->{message};
     if ($fail) {
          $$error = LJ::API::Error->make_error( $res->{message},($err || -10000) );

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