aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2018-12-01 18:33:53 +0300
committerrinpatch <rinpatch@sdf.org>2018-12-01 18:33:53 +0300
commit5f91d6b8592f601553355e2c94832c90afe17d66 (patch)
tree50136e13ca1ee1204e081eab9268a1c7dc2eb782 /lib
parentfe2759bc9f2dad044b49f4954693ac09f9368041 (diff)
downloadpleroma-5f91d6b8592f601553355e2c94832c90afe17d66.tar.gz
Fix toggle_deactivated to reactivate a deactivated user
Diffstat (limited to 'lib')
-rw-r--r--lib/mix/tasks/pleroma/user.ex2
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