mirror of https://github.com/mastodon/mastodon.git
Use `params_slice` in api/v1/admin/domain_blocks controller
parent
561427e41a
commit
607214104c
|
@ -72,7 +72,7 @@ class Api::V1::Admin::DomainBlocksController < Api::BaseController
|
|||
end
|
||||
|
||||
def domain_block_params
|
||||
params.permit(:severity, :reject_media, :reject_reports, :private_comment, :public_comment, :obfuscate)
|
||||
params_slice(:severity, :reject_media, :reject_reports, :private_comment, :public_comment, :obfuscate)
|
||||
end
|
||||
|
||||
def next_path
|
||||
|
|
Loading…
Reference in New Issue