projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct og:description tag in static-fe
[akkoma]
/
lib
/
pleroma
/
web
/
plugs
/
user_fetcher_plug.ex
diff --git
a/lib/pleroma/web/plugs/user_fetcher_plug.ex
b/lib/pleroma/web/plugs/user_fetcher_plug.ex
index 4039600daff9ecae0d135f2ff798ef62441956ea..707df9bfd842727b87d4dcd02c7df60e57a229f3 100644
(file)
--- a/
lib/pleroma/web/plugs/user_fetcher_plug.ex
+++ b/
lib/pleroma/web/plugs/user_fetcher_plug.ex
@@
-1,8
+1,14
@@
# 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.UserFetcherPlug do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.UserFetcherPlug do
+ @moduledoc """
+ Assigns `:auth_user` basing on `:auth_credentials`.
+
+ NOTE: no checks are performed at this step, auth_credentials/username could be easily faked.
+ """
+
alias Pleroma.User
import Plug.Conn
alias Pleroma.User
import Plug.Conn