aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-07 20:17:32 -0800
committerzotlabs <mike@macgirvin.com>2018-02-07 20:17:32 -0800
commitb21a5c3ce902c4c88b2bb3dcae5d63a93e25479c (patch)
treed781a863526ae8c9cd01152a74c4b865498c44a5 /include/zot.php
parent5057a4bd4cfa34ef9821889e8b11707f495d64f0 (diff)
downloadvolse-hubzilla-b21a5c3ce902c4c88b2bb3dcae5d63a93e25479c.tar.gz
volse-hubzilla-b21a5c3ce902c4c88b2bb3dcae5d63a93e25479c.tar.bz2
volse-hubzilla-b21a5c3ce902c4c88b2bb3dcae5d63a93e25479c.zip
compatibility: fallback to legacy zot if OWA succeeds but no data['msg'] is present
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php2
1 files changed, 1 insertions, 1 deletions
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) ] ] ];