diff options
author | Daniel M Brasil <danielmbrasil@protonmail.com> | 2023-07-03 13:06:57 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 18:06:57 +0200 |
commit | 383c00819cce101673f6c6ede08098336024ee70 (patch) | |
tree | 209e971c1f467cdd633cf6773b7c555abbc7111f /app/controllers | |
parent | 69e124e2edfc6c3b73054266257b669aa2d2446b (diff) |
Fix `/api/v2/search` not working with following query param (#25681)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v2/search_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/v2/search_controller.rb b/app/controllers/api/v2/search_controller.rb index 4d20aeb10fc..35be549305a 100644 --- a/app/controllers/api/v2/search_controller.rb +++ b/app/controllers/api/v2/search_controller.rb @@ -34,11 +34,11 @@ class Api::V2::SearchController < Api::BaseController params[:q], current_account, limit_param(RESULTS_LIMIT), - search_params.merge(resolve: truthy_param?(:resolve), exclude_unreviewed: truthy_param?(:exclude_unreviewed)) + search_params.merge(resolve: truthy_param?(:resolve), exclude_unreviewed: truthy_param?(:exclude_unreviewed), following: truthy_param?(:following)) ) end def search_params - params.permit(:type, :offset, :min_id, :max_id, :account_id) + params.permit(:type, :offset, :min_id, :max_id, :account_id, :following) end end |