mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 18:49:15 +00:00
add mix task for instance deletion
This commit is contained in:
parent
fb8081e1a3
commit
67beb1404b
12
lib/mix/tasks/pleroma/moderation.ex
Normal file
12
lib/mix/tasks/pleroma/moderation.ex
Normal file
|
@ -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
|
Loading…
Reference in a new issue