Require follow and read OAuth scopes for GET /api/v1/apps
[akkoma] / lib / pleroma / web / mastodon_api / controllers / app_controller.ex
index 38073c29aad8d9ccb0da52195d0b8f3e59f6c2ea..e44c4340ef808eb08cc33272798020c791d717eb 100644 (file)
@@ -20,7 +20,7 @@ defmodule Pleroma.Web.MastodonAPI.AppController do
 
   plug(:skip_auth when action in [:create, :verify_credentials])
 
-  plug(:skip_plug, OAuthScopesPlug when action in [:index])
+  plug(OAuthScopesPlug, %{scopes: ["follow", "read"]} when action in [:index])
 
   plug(Pleroma.Web.ApiSpec.CastAndValidate)