diff options
author | zotlabs <mike@macgirvin.com> | 2019-03-05 04:09:47 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-03-05 09:43:51 +0100 |
commit | 6a3cfe54af7e72dec88f7a90a8700761c364990e (patch) | |
tree | e4d5d6a0fe58745cdb1538cf57429643df68dfca | |
parent | a0bffe4a78d070d3a304658b61372ba65720e12c (diff) | |
download | volse-hubzilla-6a3cfe54af7e72dec88f7a90a8700761c364990e.tar.gz volse-hubzilla-6a3cfe54af7e72dec88f7a90a8700761c364990e.tar.bz2 volse-hubzilla-6a3cfe54af7e72dec88f7a90a8700761c364990e.zip |
remove clones from delivery recipients for top-level posts - they will get the post via clone sync
(cherry picked from commit 8e50fecccca5dd72a49869502e541db03632cd86)
-rw-r--r-- | Zotlabs/Daemon/Notifier.php | 6 |
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 |