Skip the correct plug
authorMark Felder <feld@FreeBSD.org>
Tue, 21 Jul 2020 22:26:59 +0000 (17:26 -0500)
committerMark Felder <feld@FreeBSD.org>
Tue, 21 Jul 2020 22:26:59 +0000 (17:26 -0500)
lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex

index 8669013448fb3b0c1f95e71c6d96e25bd7075457..657f4632451a192a0bf34dccb1bfe928d5e3c5d6 100644 (file)
@@ -21,7 +21,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiPackController do
          ]
   )
 
-  @skip_plugs [Pleroma.Plugs.OAuthScopesPlug, Pleroma.Plugs.ExpectPublicOrAuthenticatedCheckPlug]
+  @skip_plugs [Pleroma.Plugs.OAuthScopesPlug, Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug]
   plug(:skip_plug, @skip_plugs when action in [:index, :show, :archive])
 
   defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.PleromaEmojiPackOperation