Activity: Use more sensible block query

This commit is contained in:
lain 2020-02-25 13:14:05 +01:00
parent 12738732c9
commit 2afa6d38cf

View File

@ -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
)
)