From b21a5c3ce902c4c88b2bb3dcae5d63a93e25479c Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 7 Feb 2018 20:17:32 -0800 Subject: compatibility: fallback to legacy zot if OWA succeeds but no data['msg'] is present --- include/zot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index b44991fab..5fb18d5a7 100644 --- a/include/zot.php +++ b/include/zot.php @@ -5100,7 +5100,7 @@ function zot_reply_notify($data) { // handle zot6 delivery $zret = zot6_check_sig(); - if($zret['success'] && $zret['hubloc'] && $zret['hubloc']['hubloc_guid'] === $data['sender']['guid']) { + 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); $import = [ 'success' => true, 'pickup' => [ [ 'notify' => $data, 'message' => json_decode($data['msg'],true) ] ] ]; -- cgit v1.2.3