mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix a type error in domain_block policies (#17735)
This commit is contained in:
parent
5ccd6cbfda
commit
d7fab238a8
@ -32,7 +32,7 @@ class DomainBlock < ApplicationRecord
|
||||
|
||||
def policies
|
||||
if suspend?
|
||||
:suspend
|
||||
[:suspend]
|
||||
else
|
||||
[severity.to_sym, reject_media? ? :reject_media : nil, reject_reports? ? :reject_reports : nil].reject { |policy| policy == :noop || policy.nil? }
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user