diff options
author | rinpatch <rinpatch@sdf.org> | 2018-12-01 18:33:53 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2018-12-01 18:33:53 +0300 |
commit | 5f91d6b8592f601553355e2c94832c90afe17d66 (patch) | |
tree | 50136e13ca1ee1204e081eab9268a1c7dc2eb782 /lib | |
parent | fe2759bc9f2dad044b49f4954693ac09f9368041 (diff) | |
download | pleroma-5f91d6b8592f601553355e2c94832c90afe17d66.tar.gz |
Fix toggle_deactivated to reactivate a deactivated user
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mix/tasks/pleroma/user.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex index c20fecaa1..c7c69ed01 100644 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@ -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 |