alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r18868: LJSUP-8548: Not working Mass acction on ...

Committer: afedorov
LJSUP-8548: Not working Mass acction on comments

U   trunk/htdocs/talkmulti.bml
Modified: trunk/htdocs/talkmulti.bml
===================================================================
--- trunk/htdocs/talkmulti.bml	2011-04-13 07:26:17 UTC (rev 18867)
+++ trunk/htdocs/talkmulti.bml	2011-04-13 09:33:42 UTC (rev 18868)
@@ -109,7 +109,9 @@
             # don't let $remote mark their own comments as spam
             foreach (grep { $talkinfo{$_}->[1] != $remote->id } @talkids) {
                 my $poster = LJ::want_user($talkinfo{$_}->[1]);
+                next if LJ::Talk::can_mark_spam($poster, $u);
                 LJ::Talk::mark_comment_as_spam($u, $poster);
+                LJ::Talk::delete_author( $u, $itemid, $poster->userid );
                 LJ::set_rel($u, $poster, 'D');
                 $u->ban_user($poster);
                 $u->log_event('spam_set', { actiontarget => $poster->id, remote => $remote });

Tags: bml, livejournal, red_alf
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