From 903f7e73fbc9a36c0a073ff1c9f05555a030a34e Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 13 Oct 2014 21:44:46 -0700 Subject: if a hubloc primary change results in an xchan primary change, create a directory update packet. --- include/zot.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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']))) { -- cgit v1.2.3