aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Notifier.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-03-04 20:09:47 -0800
committerzotlabs <mike@macgirvin.com>2019-03-04 20:09:47 -0800
commit8e50fecccca5dd72a49869502e541db03632cd86 (patch)
tree819d33ceae81cd1d8be083c04cf1010af3ef23ea /Zotlabs/Daemon/Notifier.php
parent938fcdd1a6e8db47d2e66d68f8face9925bb7963 (diff)
downloadvolse-hubzilla-8e50fecccca5dd72a49869502e541db03632cd86.tar.gz
volse-hubzilla-8e50fecccca5dd72a49869502e541db03632cd86.tar.bz2
volse-hubzilla-8e50fecccca5dd72a49869502e541db03632cd86.zip
remove clones from delivery recipients for top-level posts - they will get the post via clone sync
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-rw-r--r--Zotlabs/Daemon/Notifier.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index df73d977d..4e0c0d49c 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -412,6 +412,12 @@ class Notifier {
$private = false;
$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.
// don't send deletions onward for other people's stuff