aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-02 22:00:15 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-02 22:00:15 -0700
commit90a31f4ad511e8d53ebbf70397227c1804bb8ad0 (patch)
tree46be4a0b63164b8407c26c81669cbad75c231824 /include
parent1a5898bf80246fca87ecd7a56f9b7e4780e4089c (diff)
parent065a50c920ebfe2274ab134bca7849051f3582e7 (diff)
downloadvolse-hubzilla-90a31f4ad511e8d53ebbf70397227c1804bb8ad0.tar.gz
volse-hubzilla-90a31f4ad511e8d53ebbf70397227c1804bb8ad0.tar.bz2
volse-hubzilla-90a31f4ad511e8d53ebbf70397227c1804bb8ad0.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts: include/zot.php
Diffstat (limited to 'include')
-rwxr-xr-xinclude/diaspora.php14
-rw-r--r--include/zot.php1
2 files changed, 14 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 4766a75f6..d59da6fff 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -813,11 +813,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)));
+
}
}
diff --git a/include/zot.php b/include/zot.php
index 9497e4668..31a12b763 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -2907,7 +2907,6 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
$abook['abook_feed'] = 1;
}
-
$clean = array();
if($abook['abook_xchan'] && $abook['entry_deleted']) {
logger('process_channel_sync_delivery: removing abook entry for ' . $abook['abook_xchan']);