Merge branch 'fix/backup-url-on-s3' into 'develop'
[akkoma] / lib / pleroma / web / twitter_api / views / token_view.ex
index 96b8526a4a0ad515982565212c8f55367670384c..c3630362593c53f9b5d6921f128680a1463d9f83 100644 (file)
@@ -1,5 +1,5 @@
 # Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
 # 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