mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-03 18:23:54 +00:00
pass user to User.blocks?/2 instead of ap_id
This commit is contained in:
parent
1afd6d37bd
commit
56de0216ae
|
@ -357,7 +357,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
|
||||||
|
|
||||||
blocker = User.get_by_ap_id(data["actor"])
|
blocker = User.get_by_ap_id(data["actor"])
|
||||||
|
|
||||||
assert User.blocks?(blocker, user.ap_id)
|
assert User.blocks?(blocker, user)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it works for incoming unblocks" do
|
test "it works for incoming unblocks" do
|
||||||
|
|
Loading…
Reference in a new issue