changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r21647: LJSUP-11256: LJ.XMLRPC.deletecomments ne...

Committer: nnikulochkina
LJSUP-11256: LJ.XMLRPC.deletecomments need display another error
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-04-05 09:25:38 UTC (rev 21646)
+++ trunk/cgi-bin/ljprotocol.pl	2012-04-05 10:26:26 UTC (rev 21647)
@@ -796,6 +796,7 @@
     my @comments = map { LJ::Comment->new($journal, dtalkid => $_) } @ids;
 
     foreach my $comm (@comments) {
+	return fail($err, 203, "dtalkid (specified comment doesn't exist in requested journal)") unless $comm->valid;
         return fail($err, 327, 'dtalkid:'.$comm->dtalkid) if $comm->is_deleted;
         return fail($err, 326, 'dtalkid:'.$comm->dtalkid) unless $comm->user_can_delete($u);
     }   

Tags: changelog_bot, livejournal, nnikulochkina, 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