2020-04-21 15:21:10 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Spam
|
|
|
|
module SpamConstants
|
2020-05-26 03:08:02 +00:00
|
|
|
CONDITIONAL_ALLOW = "conditional_allow"
|
2020-05-22 09:08:09 +00:00
|
|
|
DISALLOW = "disallow"
|
|
|
|
ALLOW = "allow"
|
|
|
|
BLOCK_USER = "block"
|
2021-05-07 00:10:27 +00:00
|
|
|
NOOP = "noop"
|
2020-05-22 09:08:09 +00:00
|
|
|
|
|
|
|
SUPPORTED_VERDICTS = {
|
|
|
|
BLOCK_USER => {
|
|
|
|
priority: 1
|
|
|
|
},
|
|
|
|
DISALLOW => {
|
|
|
|
priority: 2
|
|
|
|
},
|
2020-05-26 03:08:02 +00:00
|
|
|
CONDITIONAL_ALLOW => {
|
2020-05-22 09:08:09 +00:00
|
|
|
priority: 3
|
|
|
|
},
|
|
|
|
ALLOW => {
|
|
|
|
priority: 4
|
2021-05-07 00:10:27 +00:00
|
|
|
},
|
|
|
|
NOOP => {
|
|
|
|
priority: 5
|
2020-05-22 09:08:09 +00:00
|
|
|
}
|
|
|
|
}.freeze
|
2020-04-21 15:21:10 +00:00
|
|
|
end
|
|
|
|
end
|