From 6ced3426cfa29a95214c280c0d3e67798b38411c Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 29 Nov 2021 11:17:14 +0100 Subject: do not deliver to the same channel multiple times in case duplicate hubloc entries for the channel exist --- Zotlabs/Daemon/Notifier.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Daemon/Notifier.php') 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; + } } } } -- cgit v1.2.3