Domain blocks now have varying severity - auto-suspend vs auto-silence
This commit is contained in:
parent
ef2b924679
commit
6d98a73180
8 changed files with 25 additions and 12 deletions
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class DomainBlock < ApplicationRecord
|
||||
enum severity: [:silence, :suspend]
|
||||
|
||||
validates :domain, presence: true, uniqueness: true
|
||||
|
||||
def self.blocked?(domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue