From: Haelwenn (lanodan) Monnier Date: Sat, 2 Mar 2019 03:04:16 +0000 (+0100) Subject: Web.OAuth.OAuthController: Fix scopes Enum.join for OAuth response X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b6a001a34c09a35070049065367ccb7f0382a1e1;p=akkoma Web.OAuth.OAuthController: Fix scopes Enum.join for OAuth response --- diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex index 7c1a3adbd..4309cf58f 100644 --- a/lib/pleroma/web/oauth/oauth_controller.ex +++ b/lib/pleroma/web/oauth/oauth_controller.ex @@ -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)