set_moderator: ensureall applications are started.
authoreal <eal@waifu.club>
Tue, 12 Jun 2018 12:42:40 +0000 (15:42 +0300)
committereal <eal@waifu.club>
Tue, 12 Jun 2018 12:42:40 +0000 (15:42 +0300)
lib/mix/tasks/make_moderator.ex

index 4d427cfd8f40543c5380697bb80b374912d865d3..a454a958e004e5450ab706e21a8cb7a0a5a84137 100644 (file)
@@ -5,7 +5,7 @@ defmodule Mix.Tasks.SetModerator do
 
   @shortdoc "Set moderator status"
   def run([nickname | rest]) do
-    ensure_started(Repo, [])
+    Application.ensure_all_started(:pleroma)
 
     moderator =
       case rest do