From: rinpatch Date: Sat, 1 Dec 2018 15:33:53 +0000 (+0300) Subject: Fix toggle_deactivated to reactivate a deactivated user X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5f91d6b8592f601553355e2c94832c90afe17d66;p=akkoma Fix toggle_deactivated to reactivate a deactivated user --- 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