sync key changes to clones

This commit is contained in:
zotlabs
2017-07-25 17:58:46 -07:00
parent 08f15a6fc6
commit 029cf6395d
2 changed files with 111 additions and 6 deletions

View File

@@ -488,6 +488,7 @@ function change_channel_keys($channel) {
if(! $r) {
return $ret;
}
$r = q("select * from channel where channel_id = %d",
intval($channel['channel_id'])
);
@@ -532,6 +533,8 @@ function change_channel_keys($channel) {
}
}
build_sync_packet($channel['channel_id'], [ 'keychange' => $stored ]);
$a = q("select * from abook where abook_xchan = '%s' and abook_self = 1",
dbesc($stored['old_hash'])
);