From b3cfeb573a47058f7c2a119829875a5286a078ad Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 29 Mar 2023 21:46:28 +0200 Subject: do not add not_here, anon, token and rss contacts to receivers --- include/items.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/items.php b/include/items.php index a7d07a599..3a2b5efb2 100644 --- a/include/items.php +++ b/include/items.php @@ -112,7 +112,7 @@ function collect_recipients($item, &$private_envelope,$include_groups = true) { if ($hookinfo['recipients']) { $r = $hookinfo['recipients']; } else { - $r = q("select abook_xchan, xchan_network from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_self = 0 and abook_pending = 0 and abook_archived = 0 ", + $r = q("select abook_xchan, xchan_network from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_self = 0 and abook_pending = 0 and abook_archived = 0 and abook_not_here = 0 and xchan_network not in ('anon', 'token', 'rss')", intval($item['uid']) ); } @@ -209,7 +209,6 @@ function collect_recipients($item, &$private_envelope,$include_groups = true) { $recipients[] = $item['owner_xchan']; } - return $recipients; } -- cgit v1.2.3