AccountController.lookup: skip auth
authormarcin mikołajczak <git@mkljczk.pl>
Tue, 28 Dec 2021 19:02:59 +0000 (20:02 +0100)
committermarcin mikołajczak <git@mkljczk.pl>
Tue, 28 Dec 2021 19:02:59 +0000 (20:02 +0100)
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
lib/pleroma/web/mastodon_api/controllers/account_controller.ex

index 6d8fcd0263961e1724063ff88c71ac4f3887f327..a307807a93148c1f8199ad314de9d8e3230a3c67 100644 (file)
@@ -32,7 +32,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
 
   plug(Pleroma.Web.ApiSpec.CastAndValidate)
 
-  plug(:skip_auth when action == :create)
+  plug(:skip_auth when action in [:create, :lookup])
 
   plug(:skip_public_check when action in [:show, :statuses])