Lint, fix test
This commit is contained in:
parent
520dce857e
commit
f43518eb74
3 changed files with 12 additions and 5 deletions
|
|
@ -1553,8 +1553,12 @@ defmodule Pleroma.User do
|
|||
status = account_status(user)
|
||||
|
||||
case status do
|
||||
:confirmation_pending -> delete_and_invalidate_cache(user)
|
||||
:approval_pending -> delete_and_invalidate_cache(user)
|
||||
:confirmation_pending ->
|
||||
delete_and_invalidate_cache(user)
|
||||
|
||||
:approval_pending ->
|
||||
delete_and_invalidate_cache(user)
|
||||
|
||||
_ ->
|
||||
user
|
||||
|> change(%{deactivated: true, email: nil})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue