Compare commits

...

2 commits

Author SHA1 Message Date
sadposter
eeafafb06d add a little loggie 2023-06-08 14:59:34 +01:00
sadposter
67beb1404b add mix task for instance deletion 2023-06-08 14:59:34 +01:00

View 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