This website works better with JavaScript.
Home
Explore
Help
Sign In
jyt94
/
closedSocialMastodon
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
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
e19eefe219
commit
f93de3a516
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save