mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:15:11 +00:00
connection clone issues
This commit is contained in:
parent
8c4eb839f9
commit
10102ac2ac
2 changed files with 5 additions and 2 deletions
|
@ -2368,6 +2368,9 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) {
|
|||
|
||||
logger('build_sync_packet');
|
||||
|
||||
if($packet)
|
||||
logger('packet: ' . print_r($packet,true),LOGGER_DATA);
|
||||
|
||||
if(! $uid)
|
||||
$uid = local_user();
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@ function connedit_clone(&$a) {
|
|||
unset($clone['abook_account']);
|
||||
unset($clone['abook_channel']);
|
||||
|
||||
build_sync_packet(0 /* use the current local_user */, array(array('abook' => array($clone))));
|
||||
build_sync_packet(0 /* use the current local_user */, array('abook' => array($clone)));
|
||||
}
|
||||
|
||||
/* @brief Generate content of connection edit page
|
||||
|
@ -402,7 +402,7 @@ function connedit_content(&$a) {
|
|||
|
||||
contact_remove(local_user(), $orig_record[0]['abook_id']);
|
||||
build_sync_packet(0 /* use the current local_user */,
|
||||
array(array('abook' => array(
|
||||
array('abook' => array(array(
|
||||
'abook_xchan' => $orig_record[0]['abook_xchan'],
|
||||
'entry_deleted' => true))
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue