diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-11-29 11:17:14 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-11-29 11:17:14 +0100 |
commit | 6ced3426cfa29a95214c280c0d3e67798b38411c (patch) | |
tree | eae8135b13b4367df81082ee8dd5b7cc9df8a017 /Zotlabs/Daemon | |
parent | 43460c9d1924ae95dc0c9635f5e2111f82dddbcf (diff) | |
download | volse-hubzilla-6ced3426cfa29a95214c280c0d3e67798b38411c.tar.gz volse-hubzilla-6ced3426cfa29a95214c280c0d3e67798b38411c.tar.bz2 volse-hubzilla-6ced3426cfa29a95214c280c0d3e67798b38411c.zip |
do not deliver to the same channel multiple times in case duplicate hubloc entries for the channel exist
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r-- | Zotlabs/Daemon/Notifier.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php index 368a9229d..11b890696 100644 --- a/Zotlabs/Daemon/Notifier.php +++ b/Zotlabs/Daemon/Notifier.php @@ -550,7 +550,9 @@ class Notifier { if (!array_key_exists($hub['hubloc_site_id'], $hub_env)) { $hub_env[$hub['hubloc_site_id']] = []; } - $hub_env[$hub['hubloc_site_id']][] = $er; + if (!in_array($er, $hub_env[$hub['hubloc_site_id']])) { + $hub_env[$hub['hubloc_site_id']][] = $er; + } } } } |