mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Use params.slice
in api/v1/reports controller
This commit is contained in:
parent
6486f58ef4
commit
6b43a08902
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,8 @@ class Api::V1::ReportsController < Api::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def report_params
|
def report_params
|
||||||
params.permit(:account_id, :comment, :category, :forward, forward_to_domains: [], status_ids: [], rule_ids: [])
|
params
|
||||||
|
.slice(:account_id, :comment, :category, :forward, :forward_to_domains, :status_ids, :rule_ids)
|
||||||
|
.permit(:account_id, :comment, :category, :forward, :rule_ids, forward_to_domains: [], status_ids: [], rule_ids: [])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue