projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create_service_actor is now type Application
[akkoma]
/
lib
/
pleroma
/
web
/
o_auth
/
o_auth_view.ex
diff --git
a/lib/pleroma/web/o_auth/o_auth_view.ex
b/lib/pleroma/web/o_auth/o_auth_view.ex
index d22b2f7fe56f3e22a5b1cc74127cb280ab9a0e51..57a315705f7fb9a1485485c16eba88dea2513600 100644
(file)
--- a/
lib/pleroma/web/o_auth/o_auth_view.ex
+++ b/
lib/pleroma/web/o_auth/o_auth_view.ex
@@
-1,15
+1,18
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.OAuth.OAuthView do
use Pleroma.Web, :view
import Phoenix.HTML.Form
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.OAuth.OAuthView do
use Pleroma.Web, :view
import Phoenix.HTML.Form
+ import Phoenix.HTML
+ alias Pleroma.Web.Gettext
alias Pleroma.Web.OAuth.Token.Utils
def render("token.json", %{token: token} = opts) do
response = %{
alias Pleroma.Web.OAuth.Token.Utils
def render("token.json", %{token: token} = opts) do
response = %{
+ id: token.id,
token_type: "Bearer",
access_token: token.token,
refresh_token: token.refresh_token,
token_type: "Bearer",
access_token: token.token,
refresh_token: token.refresh_token,