1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-24 23:26:31 +09:00

Fix #3462 - Require authentication for search API (#4155)

This makes it consistent with /api/v1/accounts/search and
previous behaviour has been an oversight.
This commit is contained in:
Eugen Rochko 2017-07-11 17:08:26 +02:00 committed by GitHub
parent e19eefe219
commit f93de3a516

View File

@ -3,6 +3,9 @@
class Api::V1::SearchController < Api::BaseController
RESULTS_LIMIT = 5
before_action -> { doorkeeper_authorize! :read }
before_action :require_user!
respond_to :json
def index