debian-mirror-gitlab/app/services/spam/spam_constants.rb

34 lines
645 B
Ruby
Raw Normal View History

2020-05-24 23:13:21 +05:30
# frozen_string_literal: true
module Spam
module SpamConstants
2022-05-07 20:08:51 +05:30
BLOCK_USER = 'block'
DISALLOW = 'disallow'
CONDITIONAL_ALLOW = 'conditional_allow'
OVERRIDE_VIA_ALLOW_POSSIBLE_SPAM = 'override_via_allow_possible_spam'
ALLOW = 'allow'
NOOP = 'noop'
2020-06-23 00:09:42 +05:30
SUPPORTED_VERDICTS = {
BLOCK_USER => {
priority: 1
},
DISALLOW => {
priority: 2
},
CONDITIONAL_ALLOW => {
priority: 3
},
2022-05-07 20:08:51 +05:30
OVERRIDE_VIA_ALLOW_POSSIBLE_SPAM => {
2020-06-23 00:09:42 +05:30
priority: 4
2021-06-08 01:23:25 +05:30
},
2022-05-07 20:08:51 +05:30
ALLOW => {
2021-06-08 01:23:25 +05:30
priority: 5
2022-05-07 20:08:51 +05:30
},
NOOP => {
priority: 6
2020-06-23 00:09:42 +05:30
}
}.freeze
2020-05-24 23:13:21 +05:30
end
end