diff options
author | kaniini <nenolod@gmail.com> | 2018-08-16 23:59:34 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2018-08-16 23:59:34 +0000 |
commit | bdb6811f6f66a2eea1158983c86ae434f161dd7b (patch) | |
tree | 15e42e486131034e9384130db9fb6deaed5d47c0 | |
parent | 03966bb0f77295f9c597619ebecbc0b499b5d065 (diff) | |
parent | a3ef2ebb35901532fbf3fb754ae5a2832ed31a2b (diff) | |
download | pleroma-bdb6811f6f66a2eea1158983c86ae434f161dd7b.tar.gz |
Merge branch 'bugfix/undocumented-mastodon-app-api' into 'develop'
mastodon api: add undocumented fields to json response, return app id as string…
See merge request pleroma/pleroma!274
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index cd9525252..f17e2eda2 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -19,9 +19,12 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do with cs <- App.register_changeset(%App{}, params) |> IO.inspect(), {:ok, app} <- Repo.insert(cs) |> IO.inspect() do res = %{ - id: app.id, + id: app.id |> to_string, + name: app.client_name, client_id: app.client_id, - client_secret: app.client_secret + client_secret: app.client_secret, + redirect_uris: app.redirect_uris, + website: app.website } json(conn, res) |