Fix a type error in domain_block policies (#17735)

th-downstream
Takeshi Umeda 3 years ago committed by GitHub
parent c49a7369dd
commit 03d5bdae36

@ -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…
Cancel
Save