spam detection: whitelist users more than 1 month old.

This commit is contained in:
evazion
2019-10-01 21:49:53 -05:00
parent ed7b6c781a
commit 5d90256b24
2 changed files with 11 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ class SpamDetector
def spam?
return false if !SpamDetector.enabled?
return false if user.is_gold?
return false if user.created_at < 1.month.ago
is_spam = super