Browse Source

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

This makes it consistent with /api/v1/accounts/search and
previous behaviour has been an oversight.
closed-social-v3
Eugen Rochko 7 years ago
committed by GitHub
parent
commit
f93de3a516
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/controllers/api/v1/search_controller.rb

+ 3
- 0
app/controllers/api/v1/search_controller.rb 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

Loading…
Cancel
Save