remove clones from delivery recipients for top-level posts - they will get the post via clone sync

This commit is contained in:
zotlabs 2019-03-04 20:09:47 -08:00
parent 938fcdd1a6
commit 8e50fecccc

View File

@ -412,6 +412,12 @@ class Notifier {
$private = false; $private = false;
$recipients = collect_recipients($parent_item,$private); $recipients = collect_recipients($parent_item,$private);
if ($top_level_post) {
// remove clones who will receive the post via sync
$recipients = array_diff($recipients, [ $target_item['owner_xchan'] ]);
}
// FIXME add any additional recipients such as mentions, etc. // FIXME add any additional recipients such as mentions, etc.
// don't send deletions onward for other people's stuff // don't send deletions onward for other people's stuff