瀏覽代碼

activitypub: user view: add oauthRegistrationEndpoint to user profiles

tags/v1.1.4
William Pitcock 5 年之前
父節點
當前提交
29e946ace4
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      lib/pleroma/web/activity_pub/views/user_view.ex

+ 1
- 0
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}))


Loading…
取消
儲存