Delete reactivate user task

This commit is contained in:
rinpatch 2018-12-01 18:34:26 +03:00
parent 5f91d6b859
commit 6f174cbb71
1 changed files with 0 additions and 19 deletions

View File

@ -1,19 +0,0 @@
defmodule Mix.Tasks.ReactivateUser do
use Mix.Task
alias Pleroma.User
@moduledoc """
Reactivate a user
Usage: ``mix reactivate_user <nickname>``
Example: ``mix reactivate_user lain``
"""
def run([nickname]) do
Mix.Task.run("app.start")
with user <- User.get_by_nickname(nickname) do
User.deactivate(user, false)
end
end
end