diff options
author | Mario <mario@mariovavti.com> | 2020-11-12 09:00:56 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-12 09:00:56 +0000 |
commit | 06273e980e7aa978d0145f1e5ecd92cbc2aef66e (patch) | |
tree | a03f9f11785b6baf6af7a2cccb8b1acc6613abef /Zotlabs/Lib/Zotfinger.php | |
parent | bafbf0416462c6f18c3fb6c8c06a063c8d6fdae6 (diff) | |
parent | c879e5de44d8a29fb3d3aa0902f44a85add8ef99 (diff) | |
download | volse-hubzilla-5.0.1.tar.gz volse-hubzilla-5.0.1.tar.bz2 volse-hubzilla-5.0.1.zip |
Merge branch 'dev'5.0.1
Diffstat (limited to 'Zotlabs/Lib/Zotfinger.php')
-rw-r--r-- | Zotlabs/Lib/Zotfinger.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Zotfinger.php b/Zotlabs/Lib/Zotfinger.php index 722e34dfc..e853d6ebc 100644 --- a/Zotlabs/Lib/Zotfinger.php +++ b/Zotlabs/Lib/Zotfinger.php @@ -6,7 +6,7 @@ use Zotlabs\Web\HTTPSig; class Zotfinger { - static function exec($resource,$channel = null) { + static function exec($resource,$channel = null, $verify = true) { if(! $resource) { return false; @@ -41,8 +41,9 @@ class Zotfinger { logger('fetch: ' . print_r($x,true)); if($x['success']) { - - $result['signature'] = HTTPSig::verify($x); + if ($verify) { + $result['signature'] = HTTPSig::verify($x, EMPTY_STR, 'zot6'); + } $result['data'] = json_decode($x['body'],true); |