From: William Pitcock Date: Tue, 12 Feb 2019 21:49:48 +0000 (+0000) Subject: activitypub: user view: add oauthRegistrationEndpoint to user profiles X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=29e946ace43f5dd3342e2bd3699004e9c56e711d;p=akkoma activitypub: user view: add oauthRegistrationEndpoint to user profiles --- diff --git a/lib/pleroma/web/activity_pub/views/user_view.ex b/lib/pleroma/web/activity_pub/views/user_view.ex index 44beee728..af75546dd 100644 --- a/lib/pleroma/web/activity_pub/views/user_view.ex +++ b/lib/pleroma/web/activity_pub/views/user_view.ex @@ -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}))