projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4621ace83944a6ee56b94889a524a6f52b7e0f30
[akkoma]
/
lib
/
mix
/
tasks
/
relay_unfollow.ex
1
defmodule Mix.Tasks.RelayUnfollow do
2
use Mix.Task
3
require Logger
4
alias Pleroma.Web.ActivityPub.Relay
5
6
@shortdoc "Follows a remote relay"
7
def run([target]) do
8
Mix.Task.run("app.start")
9
10
:ok = Relay.unfollow(target)
11
12
# put this task to sleep to allow the genserver to push out the messages
13
:timer.sleep(500)
14
end
15
end