Commit b5a92b11 authored by William Pitcock's avatar William Pitcock

mastodon api: add undocumented fields to json response, return app id as...

mastodon api: add undocumented fields to json response, return app id as string like mastodon itself does
parent 8c3880f1
......@@ -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.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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment