Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
d7fab238
Unverified
Commit
d7fab238
authored
3 years ago
by
Takeshi Umeda
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix a type error in domain_block policies (#17735)
parent
5ccd6cbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/models/domain_block.rb
+1
-1
app/models/domain_block.rb
with
1 addition
and
1 deletion
+1
-1
app/models/domain_block.rb
+
1
-
1
View file @
d7fab238
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment