diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-09 20:51:44 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-09 20:51:44 +0300 |
commit | 5fc92deef37dcc4db476520d89dd79e616356e63 (patch) | |
tree | e9cbf49b1cd01dc145f162d6f1fc8cd334b0a208 /lib/pleroma/web/router.ex | |
parent | 027714b519cca63ac943369d0bcc9534ba448a80 (diff) | |
download | pleroma-5fc92deef37dcc4db476520d89dd79e616356e63.tar.gz |
[#1560] Ensured authentication or enabled federation for federation-related routes. New tests + tests refactoring.
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r-- | lib/pleroma/web/router.ex | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 5f3a06caa..e4e3ee704 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -570,7 +570,6 @@ defmodule Pleroma.Web.Router do plug(Pleroma.Plugs.EnsureUserKeyPlug) end - # Note: propagate _any_ updates to `@client_to_server_actions` in `ActivityPubController` scope "/", Pleroma.Web.ActivityPub do pipe_through([:activitypub_client]) @@ -600,8 +599,8 @@ defmodule Pleroma.Web.Router do post("/inbox", ActivityPubController, :inbox) end - get("/following", ActivityPubController, :following, assigns: %{relay: true}) - get("/followers", ActivityPubController, :followers, assigns: %{relay: true}) + get("/following", ActivityPubController, :relay_following) + get("/followers", ActivityPubController, :relay_followers) end scope "/internal/fetch", Pleroma.Web.ActivityPub do |