aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/plugs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-03-03 22:22:02 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-03-03 22:22:02 +0300
commitb6fc98d9cd3a32b39606c65cb4f298d280e2537c (patch)
tree33d9fe05beed7666824080272813a2704f9e052d /lib/pleroma/plugs
parentbd8624d649643c5a14bb24d8b2f2aed0454fb50d (diff)
downloadpleroma-b6fc98d9cd3a32b39606c65cb4f298d280e2537c.tar.gz
[#1560] ActivityPubController federation state restrictions adjustments. Adjusted tests.
Diffstat (limited to 'lib/pleroma/plugs')
-rw-r--r--lib/pleroma/plugs/federating_plug.ex4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/plugs/federating_plug.ex b/lib/pleroma/plugs/federating_plug.ex
index 4dc4e9279..4c5aca3e9 100644
--- a/lib/pleroma/plugs/federating_plug.ex
+++ b/lib/pleroma/plugs/federating_plug.ex
@@ -10,7 +10,7 @@ defmodule Pleroma.Web.FederatingPlug do
end
def call(conn, _opts) do
- if Pleroma.Config.get([:instance, :federating]) do
+ if federating?() do
conn
else
conn
@@ -20,4 +20,6 @@ defmodule Pleroma.Web.FederatingPlug do
|> halt()
end
end
+
+ def federating?, do: Pleroma.Config.get([:instance, :federating])
end