From 5f91d6b8592f601553355e2c94832c90afe17d66 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sat, 1 Dec 2018 18:33:53 +0300 Subject: [PATCH] Fix toggle_deactivated to reactivate a deactivated user --- lib/mix/tasks/pleroma/user.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2