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
/
ensure_public_or_authenticated_plug.ex
diff --git
a/lib/pleroma/plugs/ensure_public_or_authenticated_plug.ex
b/lib/pleroma/plugs/ensure_public_or_authenticated_plug.ex
index d980ff13d133bf64edd0e45dfea861e26a28e502..7265bb87aaa0a158f94c9da3dc16260fd1fa4d28 100644
(file)
--- a/
lib/pleroma/plugs/ensure_public_or_authenticated_plug.ex
+++ b/
lib/pleroma/plugs/ensure_public_or_authenticated_plug.ex
@@
-5,14
+5,18
@@
defmodule Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug do
import Pleroma.Web.TranslationHelpers
import Plug.Conn
defmodule Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug do
import Pleroma.Web.TranslationHelpers
import Plug.Conn
+
alias Pleroma.Config
alias Pleroma.User
alias Pleroma.Config
alias Pleroma.User
+ use Pleroma.Web, :plug
+
def init(options) do
options
end
def init(options) do
options
end
- def call(conn, _) do
+ @impl true
+ def perform(conn, _) do
public? = Config.get!([:instance, :public])
case {public?, conn} do
public? = Config.get!([:instance, :public])
case {public?, conn} do