From 065a50c920ebfe2274ab134bca7849051f3582e7 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 2 Jul 2015 21:55:36 -0700 Subject: a few clone sync fixes as well as some work on hubzilla clone sync back to redmatrix --- include/diaspora.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/diaspora.php') diff --git a/include/diaspora.php b/include/diaspora.php index 77a400604..cf8d89023 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -818,11 +818,25 @@ function diaspora_request($importer,$xml) { 'link' => z_root() . '/connedit/' . $new_connection[0]['abook_id'], )); + if($default_perms) { // Send back a sharing notification to them diaspora_share($importer,$new_connection[0]); } + + $clone = array(); + foreach($new_connection[0] as $k => $v) { + if(strpos($k,'abook_') === 0) { + $clone[$k] = $v; + } + } + unset($clone['abook_id']); + unset($clone['abook_account']); + unset($clone['abook_channel']); + + build_sync_packet($importer['channel_id'], array('abook' => array($clone))); + } } -- cgit v1.2.3