1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-25 06:15:09 +01:00

Fix toggle_deactivated to reactivate a deactivated user

This commit is contained in:
rinpatch 2018-12-01 18:33:53 +03:00
parent fe2759bc9f
commit 5f91d6b859

View File

@ -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