activitypub: use jsonb query for containment instead of recipients_to/recipients_cc.
This commit is contained in:
parent
b11746726e
commit
de9acebbf3
|
@ -415,11 +415,11 @@ defp restrict_to_cc(query, recipients_to, recipients_cc) do
|
||||||
activity in query,
|
activity in query,
|
||||||
where:
|
where:
|
||||||
fragment(
|
fragment(
|
||||||
"(? && ?) or (? && ?)",
|
"(?->'to' \\?| ?) or (?->'cc' \\?| ?)",
|
||||||
|
activity.data,
|
||||||
^recipients_to,
|
^recipients_to,
|
||||||
activity.recipients_to,
|
activity.data,
|
||||||
^recipients_cc,
|
^recipients_cc
|
||||||
activity.recipients_cc
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue