Fix a type error in domain_block policies (#17735)

This commit is contained in:
Takeshi Umeda 2022-03-10 12:10:20 +09:00 committed by GitHub
parent 5ccd6cbfda
commit d7fab238a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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