Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Fix a type error in domain_block policies (mastodon#17735)
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo authored Mar 10, 2022
1 parent 5ccd6cb commit d7fab23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/domain_block.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7fab23

Please sign in to comment.