summaryrefslogtreecommitdiff
path: root/lib/mix/tasks/relay_unfollow.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-04-17 12:22:32 +0300
committerrinpatch <rinpatch@sdf.org>2019-04-17 12:22:32 +0300
commit627e5a0a4992cc19fc65a7e93a09c470c8e2bf33 (patch)
tree0f38b475e8554863a1cbbd7750c19d4cd1336eb1 /lib/mix/tasks/relay_unfollow.ex
parentd6ab701a14f7c9fb4d59953648c425e04725fc62 (diff)
parent73df3046e014ae16e03f16a9c82921652cefcb54 (diff)
downloadpleroma-627e5a0a4992cc19fc65a7e93a09c470c8e2bf33.tar.gz
pleroma-627e5a0a4992cc19fc65a7e93a09c470c8e2bf33.zip
Merge branch 'develop' into feature/database-compaction
Diffstat (limited to 'lib/mix/tasks/relay_unfollow.ex')
-rw-r--r--lib/mix/tasks/relay_unfollow.ex23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/mix/tasks/relay_unfollow.ex b/lib/mix/tasks/relay_unfollow.ex
deleted file mode 100644
index 237fb771c..000000000
--- a/lib/mix/tasks/relay_unfollow.ex
+++ /dev/null
@@ -1,23 +0,0 @@
-defmodule Mix.Tasks.RelayUnfollow do
- use Mix.Task
- require Logger
- alias Pleroma.Web.ActivityPub.Relay
-
- @moduledoc """
- Unfollows a remote relay
-
- Usage: ``mix relay_follow <relay_url>``
-
- Example: ``mix relay_follow https://example.org/relay``
- """
- def run([target]) do
- Mix.Task.run("app.start")
-
- with {:ok, activity} <- Relay.follow(target) do
- # put this task to sleep to allow the genserver to push out the messages
- :timer.sleep(500)
- else
- {:error, e} -> Mix.shell().error("Error while following #{target}: #{inspect(e)}")
- end
- end
-end