Skip to content
Snippets Groups Projects
Unverified Commit d7fab238 authored by Takeshi Umeda's avatar Takeshi Umeda Committed by GitHub
Browse files

Fix a type error in domain_block policies (#17735)

parent 5ccd6cbf
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment