projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "oauth2 fixes (#177)"
[akkoma]
/
lib
/
pleroma
/
web
/
twitter_api
/
views
/
token_view.ex
diff --git
a/lib/pleroma/web/twitter_api/views/token_view.ex
b/lib/pleroma/web/twitter_api/views/token_view.ex
index 96b8526a4a0ad515982565212c8f55367670384c..99884e7144836afe8f08da15d2710a137208ab7d 100644
(file)
--- 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
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
21
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.TwitterAPI.TokenView do
# 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,
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
}
end
end