Commit db8abd95 authored by kaniini's avatar kaniini

activitypub: user view: fix up endpoints rendering

parent dd989962
......@@ -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}))
def render("endpoints.json", _) do
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment