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
/
user_enabled_plug.ex
1
defmodule Pleroma.Plugs.UserEnabledPlug do
2
import Plug.Conn
3
alias Pleroma.User
4
5
def init(options) do
6
options
7
end
8
9
def call(%{assigns: %{user: %User{info: %{"deactivated" => true}}}} = conn, _) do
10
conn
11
|> assign(:user, nil)
12
end
13
14
def call(conn, _) do
15
conn
16
end
17
end