aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-07-25 17:58:46 -0700
committerzotlabs <mike@macgirvin.com>2017-07-25 17:58:46 -0700
commit029cf6395dc1da503ebda7718cae30a8c19de691 (patch)
tree36b37a5c5a828e651df4eb33c622508cfe6e6a9c /include/channel.php
parent08f15a6fc60023f739676d3751e2cd14cecf52a4 (diff)
downloadvolse-hubzilla-029cf6395dc1da503ebda7718cae30a8c19de691.tar.gz
volse-hubzilla-029cf6395dc1da503ebda7718cae30a8c19de691.tar.bz2
volse-hubzilla-029cf6395dc1da503ebda7718cae30a8c19de691.zip
sync key changes to clones
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php
index 23ceb1414..f6252f094 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -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'])
);