alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r19924: LJSUP-9677: Auto-suspend for multiple sp...

Committer: afedorov
LJSUP-9677: Auto-suspend for multiple spam-reports

U   trunk/htdocs/delcomment.bml
U   trunk/htdocs/talkmulti.bml
Modified: trunk/htdocs/delcomment.bml
===================================================================
--- trunk/htdocs/delcomment.bml	2011-09-01 07:25:21 UTC (rev 19923)
+++ trunk/htdocs/delcomment.bml	2011-09-01 07:32:18 UTC (rev 19924)
@@ -230,6 +230,7 @@
             LJ::Talk::mark_comment_as_spam( $journal, $comment->jtalkid );
             LJ::set_rel($journal, $poster, 'D');
             $journal->log_event('spam_set', { actiontarget => $poster->{userid}, remote => $remote });
+            LJ::run_hook('auto_suspender_for_spam', $poster->{userid});
             $actions{'marked_spam'} = 1;
         }
 

Modified: trunk/htdocs/talkmulti.bml
===================================================================
--- trunk/htdocs/talkmulti.bml	2011-09-01 07:25:21 UTC (rev 19923)
+++ trunk/htdocs/talkmulti.bml	2011-09-01 07:32:18 UTC (rev 19924)
@@ -127,6 +127,7 @@
                         LJ::set_rel($u, $poster, 'D');
                         $u->ban_user($poster);
                         $u->log_event('spam_set', { actiontarget => $poster->id, remote => $remote });
+                        LJ::run_hook('auto_suspender_for_spam', $poster->id);
                     }
                 }
             }

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