diff options
author | zotlabs <mike@macgirvin.com> | 2018-11-14 18:56:38 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-11-14 18:56:38 -0800 |
commit | 9c25f300cf5032076c98bd597355c88e7ec08a34 (patch) | |
tree | 71bb3489bc7edc852cbf885a783d1ed65c775ad9 | |
parent | db4ff56f0b5c4610ef6706af39ac496b5d98e69b (diff) | |
download | volse-hubzilla-9c25f300cf5032076c98bd597355c88e7ec08a34.tar.gz volse-hubzilla-9c25f300cf5032076c98bd597355c88e7ec08a34.tar.bz2 volse-hubzilla-9c25f300cf5032076c98bd597355c88e7ec08a34.zip |
fixes to old z6 delivery
-rw-r--r-- | include/zot.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/zot.php b/include/zot.php index 2fca33a96..580220182 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1189,15 +1189,14 @@ function zot_fetch($arr) { $zret = zot6_check_sig(); - logger('zret: ' . print_r($zret,true)); + if($zret['success'] && $zret['hubloc'] && $zret['hubloc']['hubloc_guid'] === $arr['sender']['guid'] && $arr['msg']) { - if($zret['success'] && $zret['hubloc'] && $zret['hubloc']['hubloc_guid'] === $data['sender']['guid'] && $data['msg']) { logger('zot6_delivery',LOGGER_DEBUG); - logger('zot6_data: ' . print_r($data,true),LOGGER_DATA); + logger('zot6_data: ' . print_r($arr,true),LOGGER_DATA); $ret['collected'] = true; - $import = [ 'success' => true, 'body' => json_encode( [ 'success' => true, 'pickup' => [ [ 'notify' => $data, 'message' => json_decode($data['msg'],true) ] ] ] ) ]; + $import = [ 'success' => true, 'body' => json_encode( [ 'success' => true, 'pickup' => [ [ 'notify' => $arr, 'message' => json_decode($arr['msg'],true) ] ] ] ) ]; $hubs = [ $zret['hubloc'] ] ; } |