Skip to content

Commit

Permalink
fix: through object is null
Browse files Browse the repository at this point in the history
  • Loading branch information
kphrx authored Sep 4, 2024
1 parent 2818f94 commit 3f3df47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pleroma/web/activity_pub/activity_pub.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1125,11 +1125,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
# Same as above, but checks the Object
where:
fragment(
"(not (split_part(?->>'actor', '/', 3) = ANY(?))) or (?->>'actor') = ANY(?)",
"(not (split_part(?->>'actor', '/', 3) = ANY(?))) or (?->>'actor') = ANY(?) or ? is null",
o.data,
^domain_blocks,
o.data,
^following_ap_ids
^following_ap_ids,
o
)
)
end
Expand Down

0 comments on commit 3f3df47

Please sign in to comment.