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
1 changed files with 1 additions and 1 deletions

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"]
)