X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpleroma%2Fweb%2Ftwitter_api%2Fviews%2Ftoken_view.ex;h=c3630362593c53f9b5d6921f128680a1463d9f83;hb=c56c0a3d23929f166f4d95e5c6e96bbf0df8a35e;hp=96b8526a4a0ad515982565212c8f55367670384c;hpb=61a4bc50952b11a59dce7f655c883de59306adcd;p=akkoma
diff --git a/lib/pleroma/web/twitter_api/views/token_view.ex b/lib/pleroma/web/twitter_api/views/token_view.ex
index 96b8526a4..c36303625 100644
--- a/lib/pleroma/web/twitter_api/views/token_view.ex
+++ b/lib/pleroma/web/twitter_api/views/token_view.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.TwitterAPI.TokenView do
@@ -14,9 +14,8 @@ defmodule Pleroma.Web.TwitterAPI.TokenView do
def render("show.json", %{token: token_entry}) do
%{
id: token_entry.id,
- token: token_entry.token,
- refresh_token: token_entry.refresh_token,
- valid_until: token_entry.valid_until
+ valid_until: token_entry.valid_until,
+ app_name: token_entry.app.client_name
}
end
end