From 9aa8e297583bde4bd23dd9fe58b8653ce9c5d39e Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 14 Jun 2024 13:16:05 -0400 Subject: [PATCH] Use `params_slice` in api/v1/statuses/reblogs controller --- app/controllers/api/v1/statuses/reblogs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/statuses/reblogs_controller.rb b/app/controllers/api/v1/statuses/reblogs_controller.rb index 971b054c548..c074068275b 100644 --- a/app/controllers/api/v1/statuses/reblogs_controller.rb +++ b/app/controllers/api/v1/statuses/reblogs_controller.rb @@ -50,6 +50,6 @@ class Api::V1::Statuses::ReblogsController < Api::V1::Statuses::BaseController end def reblog_params - params.permit(:visibility) + params_slice(:visibility) end end