diff options
Diffstat (limited to 'app/services/spam/spam_constants.rb')
-rw-r--r-- | app/services/spam/spam_constants.rb | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/app/services/spam/spam_constants.rb b/app/services/spam/spam_constants.rb index 085bac684c4..2a16cfae78b 100644 --- a/app/services/spam/spam_constants.rb +++ b/app/services/spam/spam_constants.rb @@ -2,8 +2,24 @@ module Spam module SpamConstants - REQUIRE_RECAPTCHA = :recaptcha - DISALLOW = :disallow - ALLOW = :allow + CONDITIONAL_ALLOW = "conditional_allow" + DISALLOW = "disallow" + ALLOW = "allow" + BLOCK_USER = "block" + + SUPPORTED_VERDICTS = { + BLOCK_USER => { + priority: 1 + }, + DISALLOW => { + priority: 2 + }, + CONDITIONAL_ALLOW => { + priority: 3 + }, + ALLOW => { + priority: 4 + } + }.freeze end end |