Committer: sbelyaev
LJSUP-12531: Repost: Error: Not able to create new entryU 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) );