diff --git a/lib/mix/tasks/pleroma/moderation.ex b/lib/mix/tasks/pleroma/moderation.ex new file mode 100644 index 000000000..2d39ddd04 --- /dev/null +++ b/lib/mix/tasks/pleroma/moderation.ex @@ -0,0 +1,12 @@ +defmodule Mix.Tasks.Pleroma.Moderation do + use Mix.Task + import Mix.Pleroma + + @shortdoc "Does moderation" + + def run(["rm-instance", domain | _rest]) do + start_pleroma() + Pleroma.Instances.Instance.perform(:delete_instance, domain) + |> IO.inspect() + end +end