From 0c694e16a5fea1512510dd0545f2b412a48e0371 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 13 Feb 2013 10:55:32 -0500 Subject: [PATCH] Check that it's spam! --- plugins/ActivitySpam/scripts/silencespammer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ActivitySpam/scripts/silencespammer.php b/plugins/ActivitySpam/scripts/silencespammer.php index dfa9335587..fde299e982 100644 --- a/plugins/ActivitySpam/scripts/silencespammer.php +++ b/plugins/ActivitySpam/scripts/silencespammer.php @@ -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;