aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Notifier.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-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;
+ }
}
}
}