Merge branch 'main' into glitch-soc/merge-upstream
This commit is contained in:
@ -11,6 +11,10 @@ class Api::V2::SearchController < Api::BaseController
|
||||
def index
|
||||
@search = Search.new(search_results)
|
||||
render json: @search, serializer: REST::SearchSerializer
|
||||
rescue Mastodon::SyntaxError
|
||||
unprocessable_entity
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
not_found
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user