mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 10:59:17 +00:00
activitypub: user view: add oauthRegistrationEndpoint to user profiles
This commit is contained in:
parent
db8abd958d
commit
29e946ace4
|
@ -18,6 +18,7 @@ defmodule Pleroma.Web.ActivityPub.UserView do
|
|||
def render("endpoints.json", %{user: %User{local: true} = _user}) do
|
||||
%{
|
||||
"oauthAuthorizationEndpoint" => "#{Pleroma.Web.Endpoint.url()}/oauth/authorize",
|
||||
"oauthRegistrationEndpoint" => "#{Pleroma.Web.Endpoint.url()}/api/v1/apps",
|
||||
"oauthTokenEndpoint" => "#{Pleroma.Web.Endpoint.url()}/oauth/token"
|
||||
}
|
||||
|> Map.merge(render("endpoints.json", %{user: nil}))
|
||||
|
|
Loading…
Reference in a new issue