aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-11-29 11:17:14 +0100
committerMario Vavti <mario@mariovavti.com>2021-11-29 11:17:14 +0100
commit6ced3426cfa29a95214c280c0d3e67798b38411c (patch)
treeeae8135b13b4367df81082ee8dd5b7cc9df8a017
parent43460c9d1924ae95dc0c9635f5e2111f82dddbcf (diff)
downloadvolse-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
-rw-r--r--Zotlabs/Daemon/Notifier.php4
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;
+ }
}
}
}