projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update Flake ID description
[akkoma]
/
lib
/
pleroma
/
plugs
/
auth_expected_plug.ex
diff --git
a/lib/pleroma/plugs/auth_expected_plug.ex
b/lib/pleroma/plugs/auth_expected_plug.ex
index 9e4a4bec850f6535dec3f425e5da7394f0274270..f79597dc35dd22706f94b6db5d98e299ba4be770 100644
(file)
--- a/
lib/pleroma/plugs/auth_expected_plug.ex
+++ b/
lib/pleroma/plugs/auth_expected_plug.ex
@@
-10,4
+10,8
@@
defmodule Pleroma.Plugs.AuthExpectedPlug do
def call(conn, _) do
put_private(conn, :auth_expected, true)
end
+
+ def auth_expected?(conn) do
+ conn.private[:auth_expected]
+ end
end