projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'feature/rich-text-optout-backend' into 'develop'
[akkoma]
/
lib
/
pleroma
/
plugs
/
ensure_user_key_plug.ex
1
defmodule Pleroma.Plugs.EnsureUserKeyPlug do
2
import Plug.Conn
3
4
def init(opts) do
5
opts
6
end
7
8
def call(%{assigns: %{user: _}} = conn, _), do: conn
9
10
def call(conn, _) do
11
conn
12
|> assign(:user, nil)
13
end
14
end