mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +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,
|
||||
where:
|
||||
fragment(
|
||||
"(?->'to' \\?| ?)",
|
||||
"not (coalesce(?->'cc', '{}'::jsonb) \\?| ?)",
|
||||
activity.data,
|
||||
^["https://www.w3.org/ns/activitystreams#Public"]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue