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