Apply suggestion to lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
[akkoma] / lib / pleroma / web / pleroma_api / controllers / pleroma_api_controller.ex
index 7a65697e83ea0ebfa173195861b32a505b4c9ded..2c1874051ed833aac8336be4a58351ae30b5f41b 100644 (file)
@@ -26,6 +26,12 @@ defmodule Pleroma.Web.PleromaAPI.PleromaAPIController do
     when action in [:conversation, :conversation_statuses]
   )
 
+  plug(
+    OAuthScopesPlug,
+    %{scopes: ["read:statuses"], fallback: :proceed_unauthenticated}
+    when action == :emoji_reactions_by
+  )
+
   plug(
     OAuthScopesPlug,
     %{scopes: ["write:statuses"]}