activitypub: implement following/followers endpoints

This commit is contained in:
William Pitcock 2018-03-21 17:23:27 +00:00
commit 1a94704230
4 changed files with 118 additions and 15 deletions

View file

@ -249,6 +249,14 @@ defmodule Pleroma.Web.Router do
plug Pleroma.Web.Plugs.HTTPSignaturePlug
end
scope "/", Pleroma.Web.ActivityPub do
# XXX: not really ostatus
pipe_through :ostatus
get "/users/:nickname/followers", ActivityPubController, :followers
get "/users/:nickname/following", ActivityPubController, :following
end
if @federating do
scope "/", Pleroma.Web.ActivityPub do
pipe_through :activitypub