activitypub: relay: add relay following/followers collection URLs

This commit is contained in:
William Pitcock 2018-08-06 07:48:08 +00:00
parent 1c40a631e8
commit 56dc8db582

View file

@ -20,6 +20,8 @@ def render("user.json", %{user: %{nickname: nil} = user}) do
"@context" => "https://www.w3.org/ns/activitystreams", "@context" => "https://www.w3.org/ns/activitystreams",
"id" => user.ap_id, "id" => user.ap_id,
"type" => "Application", "type" => "Application",
"following" => "#{user.ap_id}/relay/following",
"followers" => "#{user.ap_id}/relay/followers",
"inbox" => "#{user.ap_id}/inbox", "inbox" => "#{user.ap_id}/inbox",
"name" => "Pleroma", "name" => "Pleroma",
"summary" => "Virtual actor for Pleroma relay", "summary" => "Virtual actor for Pleroma relay",