From: marcin mikołajczak Date: Tue, 28 Dec 2021 19:02:59 +0000 (+0100) Subject: AccountController.lookup: skip auth X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1657db656cef7a6947e76d5213a04a1764a19cde;p=akkoma AccountController.lookup: skip auth Signed-off-by: marcin mikołajczak --- diff --git a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex index 6d8fcd026..a307807a9 100644 --- a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex @@ -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])