Delete reactivate user task
authorrinpatch <rinpatch@sdf.org>
Sat, 1 Dec 2018 15:34:26 +0000 (18:34 +0300)
committerrinpatch <rinpatch@sdf.org>
Sat, 1 Dec 2018 15:34:26 +0000 (18:34 +0300)
lib/mix/tasks/reactivate_user.ex [deleted file]

diff --git a/lib/mix/tasks/reactivate_user.ex b/lib/mix/tasks/reactivate_user.ex
deleted file mode 100644 (file)
index a30d3ac..0000000
+++ /dev/null
@@ -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