Unlisted fetching: Reverse logic
Generates a faster query.
This commit is contained in:
parent
7e9f14bf3c
commit
3c3933e40b
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue