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
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment