[#283] Mix Tasks: Fix a typo in relay.ex
authorRin Toshaka <rinpatch@sdf.org>
Sat, 8 Dec 2018 07:30:34 +0000 (08:30 +0100)
committerRin Toshaka <rinpatch@sdf.org>
Sat, 8 Dec 2018 07:30:34 +0000 (08:30 +0100)
lib/mix/tasks/pleroma/relay.ex

index 2502923af314e40311cb3059cba9ceb4f82d5471..f4b7ff6a0bb34bfe739d865a09eb9ef50f06d330 100644 (file)
@@ -33,7 +33,7 @@ defmodule Mix.Tasks.Pleroma.Relay do
   def run(["unfollow", target]) do
     Common.start_pleroma()
 
-    with {:ok, activity} <- Relay.follow(target) do
+    with {:ok, activity} <- Relay.unfollow(target) do
       # put this task to sleep to allow the genserver to push out the messages
       :timer.sleep(500)
     else