Fix tagpolicy to also work with Update
[akkoma] / lib / pleroma / web.ex
index d26931af95f088fe0e87051bc464081de9613665..5761e3b385c61d9b7adb5a6d538b4cb2d52e361c 100644 (file)
@@ -62,6 +62,14 @@ defmodule Pleroma.Web do
         )
       end
 
+      defp skip_auth(conn, _) do
+        skip_plug(conn, [OAuthScopesPlug, EnsurePublicOrAuthenticatedPlug])
+      end
+
+      defp skip_public_check(conn, _) do
+        skip_plug(conn, EnsurePublicOrAuthenticatedPlug)
+      end
+
       # Executed just before actual controller action, invokes before-action hooks (callbacks)
       defp action(conn, params) do
         with %{halted: false} = conn <-