projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into feature/1893-remote-emoji-packs-pagination
[akkoma]
/
lib
/
mix
/
tasks
/
pleroma
/
user.ex
diff --git
a/lib/mix/tasks/pleroma/user.ex
b/lib/mix/tasks/pleroma/user.ex
index d502056005812c63425a740d95127a19d8d4f432..e062628047b402d192a0a4be3cd41e1f5020c7ae 100644
(file)
--- a/
lib/mix/tasks/pleroma/user.ex
+++ b/
lib/mix/tasks/pleroma/user.ex
@@
-455,11
+455,7
@@
defmodule Mix.Tasks.Pleroma.User do
end
defp set_confirmed(user, value) do
end
defp set_confirmed(user, value) do
- {:ok, user} =
- case value do
- true -> User.need_confirmation(user, false)
- false -> User.need_confirmation(user, true)
- end
+ {:ok, user} = User.need_confirmation(user, !value)
shell_info("Confirmation pending status of #{user.nickname}: #{user.confirmation_pending}")
user
shell_info("Confirmation pending status of #{user.nickname}: #{user.confirmation_pending}")
user