diff options
author | Mario <mario@mariovavti.com> | 2025-04-02 10:49:38 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-04-02 10:49:38 +0000 |
commit | 3550609d293ec4ad85c5c9ba0d940f001a7d2810 (patch) | |
tree | 68e970a95f8732b010065c629037f14a03ae3e7c /Zotlabs | |
parent | eb592bb7410697ec9c7d5aecaf8e519601a802f5 (diff) | |
download | volse-hubzilla-3550609d293ec4ad85c5c9ba0d940f001a7d2810.tar.gz volse-hubzilla-3550609d293ec4ad85c5c9ba0d940f001a7d2810.tar.bz2 volse-hubzilla-3550609d293ec4ad85c5c9ba0d940f001a7d2810.zip |
do not return success if Libzot::fetch() did not return anything useful and remove redundant parameter $hub
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Zot6/Zot6Handler.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Zotlabs/Zot6/Zot6Handler.php b/Zotlabs/Zot6/Zot6Handler.php index 053901205..2ef9e3b8d 100644 --- a/Zotlabs/Zot6/Zot6Handler.php +++ b/Zotlabs/Zot6/Zot6Handler.php @@ -34,11 +34,13 @@ class Zot6Handler implements IHandler { logger('notify received from ' . $hub['hubloc_url']); - $x = Libzot::fetch($data, $hub); - $ret['delivery_report'] = $x; + $x = Libzot::fetch($data); + if ($x) { + $ret['delivery_report'] = $x; + $ret['success'] = true; + } - $ret['success'] = true; return $ret; } |