aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Notifier.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-21 10:21:14 +0000
committerMario <mario@mariovavti.com>2020-11-21 10:21:14 +0000
commitd559b4a2017e58c1dd24684c329327e935452e64 (patch)
treeb572939d5ad94bd9313659d953a5b001df90284c /Zotlabs/Daemon/Notifier.php
parent2d4064aca4517eac695ba0f0f3618f4a7f7a08cb (diff)
downloadvolse-hubzilla-d559b4a2017e58c1dd24684c329327e935452e64.tar.gz
volse-hubzilla-d559b4a2017e58c1dd24684c329327e935452e64.tar.bz2
volse-hubzilla-d559b4a2017e58c1dd24684c329327e935452e64.zip
deliver to local hub first
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-rw-r--r--Zotlabs/Daemon/Notifier.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index f24eab773..28c512d4a 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -640,9 +640,16 @@ class Notifier {
}
else {
if(! in_array($hub['hubloc_url'],$urls)) {
- $hublist[] = $hub['hubloc_host'] . ' ' . $hub['hubloc_network'];
- $dhubs[] = $hub;
- $urls[] = $hub['hubloc_url'];
+ if($hub['hubloc_url'] === z_root()) {
+ //deliver to local hub first
+ array_unshift($hublist, $hub['hubloc_host'] . ' ' . $hub['hubloc_network']);
+ array_unshift($dhubs, $hub);
+ }
+ else {
+ $hublist[] = $hub['hubloc_host'] . ' ' . $hub['hubloc_network'];
+ $dhubs[] = $hub;
+ }
+ $urls[] = $hub['hubloc_url'];
}
}
}