Merge branch 'streamer-worker-registry' into 'develop'
[akkoma] / lib / pleroma / web / pleroma_api / controllers / scrobble_controller.ex
index c81e8535ec3ea9e69996d1e5acfadfb9023460dd..22da6c0ad6cf820a691e052635ac1a74059d95bb 100644 (file)
@@ -13,7 +13,11 @@ defmodule Pleroma.Web.PleromaAPI.ScrobbleController do
   alias Pleroma.Web.CommonAPI
   alias Pleroma.Web.MastodonAPI.StatusView
 
-  plug(OAuthScopesPlug, %{scopes: ["read"]} when action == :user_scrobbles)
+  plug(
+    OAuthScopesPlug,
+    %{scopes: ["read"], fallback: :proceed_unauthenticated} when action == :user_scrobbles
+  )
+
   plug(OAuthScopesPlug, %{scopes: ["write"]} when action != :user_scrobbles)
 
   def new_scrobble(%{assigns: %{user: user}} = conn, %{"title" => _} = params) do