Merge branch 'issue/1348' into 'develop'
[akkoma] / lib / pleroma / web / mastodon_api / controllers / subscription_controller.ex
index 287eebf921e4b726b6164fb2a21f54c71bc35e7a..fc7d52824e48231691d6beaf048ae0e0617ee485 100644 (file)
@@ -14,6 +14,8 @@ defmodule Pleroma.Web.MastodonAPI.SubscriptionController do
 
   plug(Pleroma.Plugs.OAuthScopesPlug, %{scopes: ["push"]})
 
+  plug(Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug)
+
   # Creates PushSubscription
   # POST /api/v1/push/subscription
   #