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

30 lines
498 B
Ruby
Raw Normal View History

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