diff options
author | Mark Felder <feld@FreeBSD.org> | 2019-04-18 12:44:25 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2019-04-18 12:44:25 -0500 |
commit | 1aa4994f6d867e5c3e0d56dc26d7ebad7e4ecb56 (patch) | |
tree | 2da4766c8a7c03169d8461b01f29eee28e497844 /lib | |
parent | 8c65b69d4a536311347a27f85198d2883fcd03b8 (diff) | |
download | pleroma-1aa4994f6d867e5c3e0d56dc26d7ebad7e4ecb56.tar.gz |
Do not require authentication for user search in MastoAPI
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/router.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index a809347be..8b665d61b 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -242,7 +242,6 @@ defmodule Pleroma.Web.Router do get("/accounts/verify_credentials", MastodonAPIController, :verify_credentials) get("/accounts/relationships", MastodonAPIController, :relationships) - get("/accounts/search", MastodonAPIController, :account_search) get("/accounts/:id/lists", MastodonAPIController, :account_lists) get("/accounts/:id/identity_proofs", MastodonAPIController, :empty_array) @@ -377,6 +376,8 @@ defmodule Pleroma.Web.Router do get("/trends", MastodonAPIController, :empty_array) + get("/accounts/search", MastodonAPIController, :account_search) + scope [] do pipe_through(:oauth_read_or_unauthenticated) |