aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-03-02 04:04:16 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-03-02 04:04:16 +0100
commitb6a001a34c09a35070049065367ccb7f0382a1e1 (patch)
tree92e7ce3b33c7c93217841abcde84636e06ac4ada
parent1c265b3b19bacd2e0a9ccfee0f7e53a59d83a621 (diff)
downloadpleroma-b6a001a34c09a35070049065367ccb7f0382a1e1.tar.gz
Web.OAuth.OAuthController: Fix scopes Enum.join for OAuth response
-rw-r--r--lib/pleroma/web/oauth/oauth_controller.ex2
1 files changed, 1 insertions, 1 deletions
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)