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 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||
activity in query,
|
||||
where:
|
||||
fragment(
|
||||
"(? && ?) or (? && ?)",
|
||||
"(?->'to' \\?| ?) or (?->'cc' \\?| ?)",
|
||||
activity.data,
|
||||
^recipients_to,
|
||||
activity.recipients_to,
|
||||
^recipients_cc,
|
||||
activity.recipients_cc
|
||||
activity.data,
|
||||
^recipients_cc
|
||||
)
|
||||
)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user