From 29f53a40499a4b2b170597991877fcbd02861316 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 18 Jul 2013 22:02:04 -0700 Subject: Clone syncronisation might work better if we sent out the right kind of packet. We need to send them as 'notify' packets and arrange for pickup just like other authenticated message types. --- include/settings.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/settings.php b/include/settings.php index 26f375a42..61bc2a455 100644 --- a/include/settings.php +++ b/include/settings.php @@ -46,6 +46,7 @@ function build_sync_packet($uid = 0, $packet = null) { $env_recips[] = array('guid' => $r[0]['xchan_guid'],'guid_sig' => $r[0]['xchan_guid_sig']); $info = (($packet) ? $packet : array()); + $info['type'] = 'channel_sync'; if(array_key_exists($uid,$a->config) && array_key_exists('transient',$a->config[$uid])) { $settings = $a->config[$uid]['transient']; @@ -77,7 +78,7 @@ function build_sync_packet($uid = 0, $packet = null) { foreach($synchubs as $hub) { $hash = random_string(); - $n = zot_build_packet($channel,'channel_sync',$env_recips,$hub['hubloc_sitekey'],null,$hash); + $n = zot_build_packet($channel,'notify',$env_recips,$hub['hubloc_sitekey'],null,$hash); q("insert into outq ( outq_hash, outq_account, outq_channel, outq_posturl, outq_async, outq_created, outq_updated, outq_notify, outq_msg ) values ( '%s', %d, %d, '%s', %d, '%s', '%s', '%s', '%s' )", dbesc($hash), intval($channel['channel_account']), -- cgit v1.2.3