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 @@ def run(["toggle_activated", nickname]) 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