Check that it's spam!
This commit is contained in:
parent
cc98a0b76f
commit
0c694e16a5
@ -82,7 +82,7 @@ function silencespammer($filter, $user, $minimum, $percent) {
|
|||||||
|
|
||||||
$ss->query(sprintf("SELECT count(*) as spam_count ".
|
$ss->query(sprintf("SELECT count(*) as spam_count ".
|
||||||
"FROM notice join spam_score on notice.id = spam_score.notice_id ".
|
"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()) {
|
while ($ss->fetch()) {
|
||||||
$spam_count = $ss->spam_count;
|
$spam_count = $ss->spam_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user