Unlisted fetching: Reverse logic

Generates a faster query.
This commit is contained in:
lain 2018-05-13 11:58:03 +02:00
parent 7e9f14bf3c
commit 3c3933e40b

View file

@ -327,7 +327,7 @@ defp restrict_unlisted(query) do
activity in query,
where:
fragment(
"(?->'to' \\?| ?)",
"not (coalesce(?->'cc', '{}'::jsonb) \\?| ?)",
activity.data,
^["https://www.w3.org/ns/activitystreams#Public"]
)