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/admin/reports controller

This commit is contained in:
Matt Jankowski 2024-06-14 13:02:00 -04:00
parent 8a705c479e
commit 50bcdf5371

View file

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