mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Use shorthand
This commit is contained in:
parent
bf24de759a
commit
7c2847e12d
|
@ -92,7 +92,7 @@ module Admin
|
|||
# Disallow accidental downgrade of an existing domain block record
|
||||
if existing_domain_block.present? && !@domain_block.stricter_than?(existing_domain_block)
|
||||
@domain_block.validate
|
||||
flash.now[:alert] = unblock_first_alert
|
||||
flash.now.alert = unblock_first_alert
|
||||
@domain_block.errors.delete(:domain)
|
||||
render :new
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user