mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix a type error in domain_block policies (#17735)
This commit is contained in:
parent
5ccd6cbfda
commit
d7fab238a8
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class DomainBlock < ApplicationRecord
|
||||||
|
|
||||||
def policies
|
def policies
|
||||||
if suspend?
|
if suspend?
|
||||||
:suspend
|
[:suspend]
|
||||||
else
|
else
|
||||||
[severity.to_sym, reject_media? ? :reject_media : nil, reject_reports? ? :reject_reports : nil].reject { |policy| policy == :noop || policy.nil? }
|
[severity.to_sym, reject_media? ? :reject_media : nil, reject_reports? ? :reject_reports : nil].reject { |policy| policy == :noop || policy.nil? }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue