mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-29 02:15:03 +01:00
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
This commit is contained in:
commit
bdb6811f6f
@ -19,9 +19,12 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|||||||
with cs <- App.register_changeset(%App{}, params) |> IO.inspect(),
|
with cs <- App.register_changeset(%App{}, params) |> IO.inspect(),
|
||||||
{:ok, app} <- Repo.insert(cs) |> IO.inspect() do
|
{:ok, app} <- Repo.insert(cs) |> IO.inspect() do
|
||||||
res = %{
|
res = %{
|
||||||
id: app.id,
|
id: app.id |> to_string,
|
||||||
|
name: app.client_name,
|
||||||
client_id: app.client_id,
|
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)
|
json(conn, res)
|
||||||
|
Loading…
Reference in New Issue
Block a user