]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Check that it's spam!
authorEvan Prodromou <evan@status.net>
Wed, 13 Feb 2013 15:55:32 +0000 (10:55 -0500)
committerEvan Prodromou <evan@status.net>
Wed, 13 Feb 2013 15:55:32 +0000 (10:55 -0500)
plugins/ActivitySpam/scripts/silencespammer.php

index dfa9335587148e3fcc8197c2030a01f4af77d6d8..fde299e9825449fd4a77c915b91ed8fccd715f97 100644 (file)
@@ -82,7 +82,7 @@ function silencespammer($filter, $user, $minimum, $percent) {
 
     $ss->query(sprintf("SELECT count(*) as spam_count ".
                        "FROM notice join spam_score on notice.id = spam_score.notice_id ".
-                       "WHERE notice.profile_id = %d", $profile->id));
+                       "WHERE notice.profile_id = %d AND spam_score.is_spam = 1", $profile->id));
 
     while ($ss->fetch()) {
         $spam_count = $ss->spam_count;