projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make password reset pages translatable
[akkoma]
/
lib
/
pleroma
/
web
/
plugs
/
ensure_public_or_authenticated_plug.ex
diff --git
a/lib/pleroma/web/plugs/ensure_public_or_authenticated_plug.ex
b/lib/pleroma/web/plugs/ensure_public_or_authenticated_plug.ex
index 3bebdac6db6e983cfeeafe4a018f3db035fcca07..8a8532f4156f31d33f8e72a282c7ea4bb8305315 100644
(file)
--- a/
lib/pleroma/web/plugs/ensure_public_or_authenticated_plug.ex
+++ b/
lib/pleroma/web/plugs/ensure_public_or_authenticated_plug.ex
@@
-1,8
+1,13
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.EnsurePublicOrAuthenticatedPlug do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.EnsurePublicOrAuthenticatedPlug do
+ @moduledoc """
+ Ensures instance publicity or _user_ authentication
+ (app-bound user-unbound tokens are accepted only if the instance is public).
+ """
+
import Pleroma.Web.TranslationHelpers
import Plug.Conn
import Pleroma.Web.TranslationHelpers
import Plug.Conn