relay: reintroduce @allow_relay

This commit is contained in:
William Pitcock 2018-08-06 08:20:21 +00:00
parent 1e1a29f084
commit 5abf9ad602
1 changed files with 5 additions and 3 deletions

View File

@ -323,9 +323,11 @@ def user_fetcher(username) do
end
if @federating do
scope "/relay", Pleroma.Web.ActivityPub do
pipe_through(:ap_relay)
get("/", ActivityPubController, :relay)
if @allow_relay do
scope "/relay", Pleroma.Web.ActivityPub do
pipe_through(:ap_relay)
get("/", ActivityPubController, :relay)
end
end
scope "/", Pleroma.Web.ActivityPub do