From 524eacf4b972c1e3a11b3528b023e8b3a7e25d6a Mon Sep 17 00:00:00 2001 From: nonamethanks Date: Mon, 22 Nov 2021 18:29:46 +0100 Subject: [PATCH] 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. --- app/logical/spam_detector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/spam_detector.rb b/app/logical/spam_detector.rb index 025a0631a..b327af704 100644 --- a/app/logical/spam_detector.rb +++ b/app/logical/spam_detector.rb @@ -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