projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#468] Formatting fix.
[akkoma]
/
lib
/
pleroma
/
plugs
/
user_fetcher_plug.ex
diff --git
a/lib/pleroma/plugs/user_fetcher_plug.ex
b/lib/pleroma/plugs/user_fetcher_plug.ex
index 9cbaaf40a983be5d4c76788ae25bd71d3bc5c64a..7ed4602bbd2a5c43e4a96aba0b975657f05a4958 100644
(file)
--- a/
lib/pleroma/plugs/user_fetcher_plug.ex
+++ b/
lib/pleroma/plugs/user_fetcher_plug.ex
@@
-1,13
+1,18
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Plugs.UserFetcherPlug do
defmodule Pleroma.Plugs.UserFetcherPlug do
- import Plug.Conn
- alias Pleroma.Repo
alias Pleroma.User
alias Pleroma.User
+ alias Pleroma.Repo
+
+ import Plug.Conn
def init(options) do
options
end
def init(options) do
options
end
- def call(conn, options) do
+ def call(conn,
_
options) do
with %{auth_credentials: %{username: username}} <- conn.assigns,
{:ok, %User{} = user} <- user_fetcher(username) do
conn
with %{auth_credentials: %{username: username}} <- conn.assigns,
{:ok, %User{} = user} <- user_fetcher(username) do
conn