diff options
author | friendica <info@friendica.com> | 2013-07-18 22:02:04 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-18 22:02:04 -0700 |
commit | 29f53a40499a4b2b170597991877fcbd02861316 (patch) | |
tree | 925191390524d22995d33c6fdf9c6517578bb3cb /include | |
parent | dfd13a0d8aaf04e2d7037bad06f261206d61ad9c (diff) | |
download | volse-hubzilla-29f53a40499a4b2b170597991877fcbd02861316.tar.gz volse-hubzilla-29f53a40499a4b2b170597991877fcbd02861316.tar.bz2 volse-hubzilla-29f53a40499a4b2b170597991877fcbd02861316.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/settings.php | 3 |
1 files changed, 2 insertions, 1 deletions
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']), |