projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
transmogrifier: Use the correct variable and prefer inspect in case of a bad type...
[akkoma]
/
lib
/
mix
/
tasks
/
relay_follow.ex
1
defmodule Mix.Tasks.RelayFollow 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.follow(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