pass user to User.blocks?/2 instead of ap_id
authorFrancis Dinh <normandy@firemail.cc>
Sun, 20 May 2018 23:45:05 +0000 (19:45 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Sun, 20 May 2018 23:45:05 +0000 (19:45 -0400)
test/web/activity_pub/transmogrifier_test.exs

index 87fadece239e17c5a598dc89a145f56965172297..da55909bc897c590c972a043cdebffaac8427709 100644 (file)
@@ -357,7 +357,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
 
       blocker = User.get_by_ap_id(data["actor"])
 
-      assert User.blocks?(blocker, user.ap_id)
+      assert User.blocks?(blocker, user)
     end
 
     test "it works for incoming unblocks" do