1
0
Fork 0
forked from mirrors/akkoma

mastodon api: add undocumented fields to json response, return app id as string like mastodon itself does

This commit is contained in:
William Pitcock 2018-08-16 23:36:35 +00:00
parent 8c3880f18c
commit b5a92b1199

View file

@ -19,9 +19,12 @@ def create_app(conn, params) 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.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)