mirror of https://github.com/mastodon/mastodon.git
Use `params.slice` in api/v1/admin/reports controller
parent
7c8d78eb89
commit
b27f945e40
|
@ -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 New Issue