diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2022-03-10 12:10:20 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 04:10:20 +0100 |
commit | d7fab238a891d2530c9937a2fa627b622972d409 (patch) | |
tree | f69bc4998df3ed4319ab9e6caca5a0b13ebcf001 /app | |
parent | 5ccd6cbfda84463a90b55be077da13498e1cc293 (diff) |
Fix a type error in domain_block policies (#17735)
Diffstat (limited to 'app')
-rw-r--r-- | app/models/domain_block.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb index b06fa09da..2b797ef91 100644 --- a/app/models/domain_block.rb +++ b/app/models/domain_block.rb @@ -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 |