Browse Source

Fix a type error in domain_block policies (#17735)

closed-social-glitch-2
Takeshi Umeda 2 years ago
committed by GitHub
parent
commit
d7fab238a8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/domain_block.rb

+ 1
- 1
app/models/domain_block.rb View File

@ -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

Loading…
Cancel
Save