logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: de9acebbf39ca397d9388b12b167b55110611fa6
parent: b11746726e048c40fea758e665667757d455be5e
Author: William Pitcock <nenolod@dereferenced.org>
Date:   Wed, 29 Aug 2018 18:32:04 +0000

activitypub: use jsonb query for containment instead of recipients_to/recipients_cc.

Diffstat:

Mlib/pleroma/web/activity_pub/activity_pub.ex8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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