projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle bcrypt passwords for Mastodon migration
[akkoma]
/
lib
/
pleroma
/
plugs
/
federating_plug.ex
diff --git
a/lib/pleroma/plugs/federating_plug.ex
b/lib/pleroma/plugs/federating_plug.ex
index c6d622ce461ad4fdb9dabf3fb7b42f6fd5ec7ff0..09038f3c6142f87b4e6c0e5174418bc20bdba6e2 100644
(file)
--- a/
lib/pleroma/plugs/federating_plug.ex
+++ b/
lib/pleroma/plugs/federating_plug.ex
@@
-19,7
+19,10
@@
defmodule Pleroma.Web.FederatingPlug do
def federating?, do: Pleroma.Config.get([:instance, :federating])
def federating?, do: Pleroma.Config.get([:instance, :federating])
- def fail(conn) do
+ # Definition for the use in :if_func / :unless_func plug options
+ def federating?(_conn), do: federating?()
+
+ defp fail(conn) do
conn
|> put_status(404)
|> Phoenix.Controller.put_view(Pleroma.Web.ErrorView)
conn
|> put_status(404)
|> Phoenix.Controller.put_view(Pleroma.Web.ErrorView)