forked from YokaiRick/akkoma
Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
|
eeafafb06d | ||
|
67beb1404b |
1 changed files with 13 additions and 0 deletions
13
lib/mix/tasks/pleroma/moderation.ex
Normal file
13
lib/mix/tasks/pleroma/moderation.ex
Normal file
|
@ -0,0 +1,13 @@
|
|||
defmodule Mix.Tasks.Pleroma.Moderation do
|
||||
use Mix.Task
|
||||
import Mix.Pleroma
|
||||
|
||||
@shortdoc "Does moderation"
|
||||
|
||||
def run(["rm-instance", domain | _rest]) do
|
||||
start_pleroma()
|
||||
IO.puts("Deleting #{domain}")
|
||||
Pleroma.Instances.Instance.perform(:delete_instance, domain)
|
||||
|> IO.inspect()
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue