mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-15 08:48:15 +00:00
Fix another syntax error in whitelist code
This commit is contained in:
parent
b1982bf24b
commit
4dac2cd251
|
@ -4,7 +4,7 @@ class DomainWhitelist < ApplicationRecord
|
|||
enum severity: [:silence, :enable]
|
||||
|
||||
def self.enabled?
|
||||
return Setting.where(var: 'whitelist_enabled').first_or_initialize!(var: 'whitelist_enabled', value: false)
|
||||
return Setting.where(var: 'whitelist_enabled').first_or_initialize(var: 'whitelist_enabled', value: false)
|
||||
end
|
||||
|
||||
validates :domain, presence: true, uniqueness: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user