Check that it's spam!

This commit is contained in:
Evan Prodromou 2013-02-13 10:55:32 -05:00
parent cc98a0b76f
commit 0c694e16a5

View 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;