mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Fix toggle_deactivated to reactivate a deactivated user
This commit is contained in:
parent
fe2759bc9f
commit
5f91d6b859
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ defmodule Mix.Tasks.Pleroma.User do
|
|||
Mix.Task.run("app.start")
|
||||
|
||||
with user <- User.get_by_nickname(nickname) do
|
||||
User.deactivate(user)
|
||||
User.deactivate(user, !user.info["deactivated"])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue