Pass correct number of arguments to unfollow
authorFrancis Dinh <normandy@firemail.cc>
Mon, 21 May 2018 15:57:15 +0000 (11:57 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Mon, 21 May 2018 15:57:15 +0000 (11:57 -0400)
lib/pleroma/web/activity_pub/activity_pub.ex

index c2d540db97187d29503961f8885dc2cfa51a0ca6..8485a800982fe8b9433026fe099a89aceddc2345 100644 (file)
@@ -224,7 +224,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
     follow_activity = fetch_latest_follow(blocker, blocked)
 
     if follow_activity do
-      unfollow(blocker, blocked, local)
+      unfollow(blocker, blocked, nil, local)
     end
 
     with block_data <- make_block_data(blocker, blocked, activity_id),