changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r21648: LJSUP-11279: LJ.XMLRPC.deletecomments in...

Committer: nnikulochkina
LJSUP-11279: LJ.XMLRPC.deletecomments incorrect working counter
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-04-05 10:26:26 UTC (rev 21647)
+++ trunk/cgi-bin/ljprotocol.pl	2012-04-05 10:43:17 UTC (rev 21648)
@@ -811,7 +811,7 @@
             my @children = ($comment);
             while(my $item = shift @children){
                 return fail($err, 326, 'Thread contains somebody else\'s comment. dtalkid:'.$item->dtalkid) unless $item->user_can_delete($u);
-                $map_delete{$item->dtalkid} = $item;
+                $map_delete{$item->dtalkid} = $item unless $item->is_deleted;
                 push @children, grep { $_->{parenttalkid} == $item->{jtalkid} } @comment_tree;
             }
         }

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