projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f91d6b
)
Delete reactivate user task
author
rinpatch
<rinpatch@sdf.org>
Sat, 1 Dec 2018 15:34:26 +0000
(18:34 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Sat, 1 Dec 2018 15:34:26 +0000
(18:34 +0300)
lib/mix/tasks/reactivate_user.ex
[deleted file]
patch
|
blob
|
history
diff --git
a/lib/mix/tasks/reactivate_user.ex
b/lib/mix/tasks/reactivate_user.ex
deleted file mode 100644
(file)
index
a30d3ac
..0000000
--- a/
lib/mix/tasks/reactivate_user.ex
+++ /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