mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-03 18:23:54 +00:00
Unlisted fetching: Reverse logic
Generates a faster query.
This commit is contained in:
parent
7e9f14bf3c
commit
3c3933e40b
|
@ -327,7 +327,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||||
activity in query,
|
activity in query,
|
||||||
where:
|
where:
|
||||||
fragment(
|
fragment(
|
||||||
"(?->'to' \\?| ?)",
|
"not (coalesce(?->'cc', '{}'::jsonb) \\?| ?)",
|
||||||
activity.data,
|
activity.data,
|
||||||
^["https://www.w3.org/ns/activitystreams#Public"]
|
^["https://www.w3.org/ns/activitystreams#Public"]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue