Web.OAuth.OAuthController: Fix scopes Enum.join for OAuth response
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 2 Mar 2019 03:04:16 +0000 (04:04 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 2 Mar 2019 03:04:16 +0000 (04:04 +0100)
lib/pleroma/web/oauth/oauth_controller.ex

index 7c1a3adbd363046ff3606922c113d4518039c41d..4309cf58f0c940122e80fbc459460cefa66711ca 100644 (file)
@@ -114,7 +114,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
         refresh_token: token.refresh_token,
         created_at: DateTime.to_unix(inserted_at),
         expires_in: 60 * 10,
-        scope: Enum.join(token.scopes)
+        scope: Enum.join(token.scopes, " ")
       }
 
       json(conn, response)