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
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user