2020-04-21 15:21:10 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Spam
|
|
|
|
module SpamConstants
|
2020-05-22 09:08:09 +00:00
|
|
|
REQUIRE_RECAPTCHA = "recaptcha"
|
|
|
|
DISALLOW = "disallow"
|
|
|
|
ALLOW = "allow"
|
|
|
|
BLOCK_USER = "block"
|
|
|
|
|
|
|
|
SUPPORTED_VERDICTS = {
|
|
|
|
BLOCK_USER => {
|
|
|
|
priority: 1
|
|
|
|
},
|
|
|
|
DISALLOW => {
|
|
|
|
priority: 2
|
|
|
|
},
|
|
|
|
REQUIRE_RECAPTCHA => {
|
|
|
|
priority: 3
|
|
|
|
},
|
|
|
|
ALLOW => {
|
|
|
|
priority: 4
|
|
|
|
}
|
|
|
|
}.freeze
|
2020-04-21 15:21:10 +00:00
|
|
|
end
|
|
|
|
end
|