mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Use params.slice
in api/v1/admin/reports controller
This commit is contained in:
parent
8a705c479e
commit
50bcdf5371
1 changed files with 3 additions and 1 deletions
|
@ -82,7 +82,9 @@ class Api::V1::Admin::ReportsController < Api::BaseController
|
|||
end
|
||||
|
||||
def report_params
|
||||
params.permit(:category, rule_ids: [])
|
||||
params
|
||||
.slice(:category, :rule_ids)
|
||||
.permit(:category, rule_ids: [])
|
||||
end
|
||||
|
||||
def filter_params
|
||||
|
|
Loading…
Reference in a new issue