mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-26 21:35:11 +01:00
activitypub: user view: fix up endpoints rendering
This commit is contained in:
parent
dd989962e6
commit
db8abd958d
@ -15,12 +15,12 @@ defmodule Pleroma.Web.ActivityPub.UserView do
|
||||
|
||||
import Ecto.Query
|
||||
|
||||
def render("endpoints.json", %{user: %{local: true} = _user}) do
|
||||
def render("endpoints.json", %{user: %User{local: true} = _user}) do
|
||||
%{
|
||||
"oauthAuthorizationEndpoint" => "#{Pleroma.Web.Endpoint.url()}/oauth/authorize",
|
||||
"oauthTokenEndpoint" => "#{Pleroma.Web.Endpoint.url()}/oauth/token"
|
||||
}
|
||||
|> Map.merge(render("endpoints.json", nil))
|
||||
|> Map.merge(render("endpoints.json", %{user: nil}))
|
||||
end
|
||||
|
||||
def render("endpoints.json", _) do
|
||||
|
Loading…
Reference in New Issue
Block a user