SpamDetector: raise autoban duration to 100 years.

This is to match the max duration usable by mods in the site.
The previous value of 999_999 seconds only amounted to 11 days.
This commit is contained in:
nonamethanks
2021-11-22 18:29:46 +01:00
parent ab6d9bd0e8
commit 524eacf4b9

View File

@@ -11,7 +11,7 @@ class SpamDetector
# window, automatically ban them forever.
AUTOBAN_THRESHOLD = 10
AUTOBAN_WINDOW = 1.hour
AUTOBAN_DURATION = 999_999
AUTOBAN_DURATION = 100.years
attr_accessor :record, :user, :user_ip, :content, :comment_type