diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-28 01:02:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-28 01:02:21 +0200 |
commit | ab33c4df942ec3fdc4d891f3db7ac8cdd3436945 (patch) | |
tree | b526a52c980fef122d38302234c0bb8361f6bd14 /app/controllers/api | |
parent | 234c729c5244160c89070960fd06de23ae31e13a (diff) |
Add `exclude_unreviewed` param to `GET /api/v2/search` REST API (#11977)
Make it so normal search returns even unreviewed matches, but autosuggestions do not. Fix #11960
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v2/search_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v2/search_controller.rb b/app/controllers/api/v2/search_controller.rb index c14cd22d7..cbd9b551d 100644 --- a/app/controllers/api/v2/search_controller.rb +++ b/app/controllers/api/v2/search_controller.rb @@ -22,7 +22,7 @@ class Api::V2::SearchController < Api::BaseController params[:q], current_account, limit_param(RESULTS_LIMIT), - search_params.merge(resolve: truthy_param?(:resolve)) + search_params.merge(resolve: truthy_param?(:resolve), exclude_unreviewed: truthy_param?(:exclude_unreviewed)) ) end |