1
0
Fork 0
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:
Matt Jankowski 2024-06-14 12:53:42 -04:00
parent 6486f58ef4
commit 6b43a08902

View file

@ -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