diff options
author | zotlabs <mike@macgirvin.com> | 2020-01-29 14:29:06 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2020-01-29 14:29:06 -0800 |
commit | 3df5d854b8935b11c67893bbbd24cdf8829eda00 (patch) | |
tree | b206e3050ed8bb54022f3e7c1be105903274febb /Zotlabs/Lib/Libsync.php | |
parent | f123809d29d6cc335251cd4fd8984c1b5ef67e2a (diff) | |
download | volse-hubzilla-3df5d854b8935b11c67893bbbd24cdf8829eda00.tar.gz volse-hubzilla-3df5d854b8935b11c67893bbbd24cdf8829eda00.tar.bz2 volse-hubzilla-3df5d854b8935b11c67893bbbd24cdf8829eda00.zip |
z6 transition work - prevent z6 sync packets from being unpacked into an incompatible schema
Diffstat (limited to 'Zotlabs/Lib/Libsync.php')
-rw-r--r-- | Zotlabs/Lib/Libsync.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php index d93270bc5..b9e9bb38a 100644 --- a/Zotlabs/Lib/Libsync.php +++ b/Zotlabs/Lib/Libsync.php @@ -83,7 +83,7 @@ class Libsync { $info = (($packet) ? $packet : array()); $info['type'] = 'sync'; - $info['encoding'] = 'red'; // note: not zot, this packet is very platform specific + $info['encoding'] = 'hz'; // note: not zot, this packet is very platform specific $info['relocate'] = ['channel_address' => $channel['channel_address'], 'url' => z_root() ]; if(array_key_exists($uid,\App::$config) && array_key_exists('transient',\App::$config[$uid])) { @@ -144,7 +144,7 @@ class Libsync { foreach($synchubs as $hub) { $hash = random_string(); - $n = Libzot::build_packet($channel,'sync',$env_recips,json_encode($info),'red',$hub['hubloc_sitekey'],$hub['site_crypto']); + $n = Libzot::build_packet($channel,'sync',$env_recips,json_encode($info),'hz',$hub['hubloc_sitekey'],$hub['site_crypto']); Queue::insert(array( 'hash' => $hash, 'account_id' => $channel['channel_account_id'], |