diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index ea648bd9f..dedda3313 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -949,10 +949,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do ), where: fragment( - "(not (split_part(?->>'actor', '/', 3) = ANY(?))) or (?->>'actor') = ANY(?)", + "(not (split_part(?->>'actor', '/', 3) = ANY(?))) or (? = ANY(?))", activity.data, ^domain_blocks, - activity.data, + activity.actor, ^following_ap_ids ) )