aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-02 21:55:36 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-02 21:55:36 -0700
commit065a50c920ebfe2274ab134bca7849051f3582e7 (patch)
tree696993095e821eda1b58576b3947714eceabd681 /include/diaspora.php
parent9369e521bbe45c5be3e5342d14b0670c85f78a31 (diff)
downloadvolse-hubzilla-065a50c920ebfe2274ab134bca7849051f3582e7.tar.gz
volse-hubzilla-065a50c920ebfe2274ab134bca7849051f3582e7.tar.bz2
volse-hubzilla-065a50c920ebfe2274ab134bca7849051f3582e7.zip
a few clone sync fixes as well as some work on hubzilla clone sync back to redmatrix
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php14
1 files changed, 14 insertions, 0 deletions
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)));
+
}
}