projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Language code on mastoapi statuses (#433)
[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 b6dfc4f3ca8cb7a0e1a597743aeb91f14f8a2ad2..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
@@
-3,6
+3,11
@@
# 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