aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-13 21:44:46 -0700
committerfriendica <info@friendica.com>2014-10-13 21:44:46 -0700
commit903f7e73fbc9a36c0a073ff1c9f05555a030a34e (patch)
tree91338d5abcd5f9345e41675451ab5c0b4d0a6f4d /include/zot.php
parent0057612a9f9ecb49c2bd69e550827e2304c85204 (diff)
downloadvolse-hubzilla-903f7e73fbc9a36c0a073ff1c9f05555a030a34e.tar.gz
volse-hubzilla-903f7e73fbc9a36c0a073ff1c9f05555a030a34e.tar.bz2
volse-hubzilla-903f7e73fbc9a36c0a073ff1c9f05555a030a34e.zip
if a hubloc primary change results in an xchan primary change, create a directory update packet.
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index 0338f0ea2..869bca668 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1851,7 +1851,11 @@ function sync_locations($sender,$arr,$absolute = false) {
}
elseif($absolute) {
// Absolute sync - make sure the current primary is correctly reflected in the xchan
- hubloc_change_primary($r[0]);
+ $pr = hubloc_change_primary($r[0]);
+ if($pr) {
+ $what .= 'xchan_primary';
+ $changed = true;
+ }
}
if((($r[0]['hubloc_flags'] & HUBLOC_FLAGS_DELETED) && (! $location['deleted']))
|| ((! ($r[0]['hubloc_flags'] & HUBLOC_FLAGS_DELETED)) && ($location['deleted']))) {