about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2022-03-10 12:10:20 +0900
committerGitHub <noreply@github.com>2022-03-10 04:10:20 +0100
commitd7fab238a891d2530c9937a2fa627b622972d409 (patch)
treef69bc4998df3ed4319ab9e6caca5a0b13ebcf001 /app
parent5ccd6cbfda84463a90b55be077da13498e1cc293 (diff)
Fix a type error in domain_block policies (#17735)
Diffstat (limited to 'app')
-rw-r--r--app/models/domain_block.rb2
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