Use correct variable names in unfollow
authorFrancis Dinh <normandy@firemail.cc>
Sun, 20 May 2018 00:57:37 +0000 (20:57 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Sun, 20 May 2018 00:57:37 +0000 (20:57 -0400)
lib/pleroma/web/activity_pub/transmogrifier.ex

index cc0033a5fca6938075a22e731a6344614879612d..0d539c02c54be71eb0d3cfa98294affe3d868818 100644 (file)
@@ -270,7 +270,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
     with %User{local: true} = blocked = User.get_cached_by_ap_id(blocked),
          %User{} = blocker = User.get_or_fetch_by_ap_id(blocker),
          {:ok, activity} <- ActivityPub.block(blocker, blocked, false) do
-      User.unfollow(follower, followed)
+      User.unfollow(blocker, blocked)
       User.block(blocker, blocked.ap_id)
       {:ok, activity}
     else