mastodon api controller: client_name, not name
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 16 Aug 2018 23:49:35 +0000 (23:49 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 16 Aug 2018 23:50:49 +0000 (23:50 +0000)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index d3b95e793e660df9fd8a71930cf244ec2aba8f7a..f17e2eda2780107ce44aac9a4470fb877fd2c5e9 100644 (file)
@@ -20,7 +20,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
          {:ok, app} <- Repo.insert(cs) |> IO.inspect() do
       res = %{
         id: app.id |> to_string,
-        name: app.name,
+        name: app.client_name,
         client_id: app.client_id,
         client_secret: app.client_secret,
         redirect_uris: app.redirect_uris,