aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/HTTPSig.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-15 09:19:55 +0000
committerMario <mario@mariovavti.com>2022-09-15 09:19:55 +0000
commit118a5edebc745fe2760f781c8bb9e9006bf6215f (patch)
treef5162ba06cc2ec32b685fd566b086ed9e52d7b33 /Zotlabs/Web/HTTPSig.php
parent1b4333e8d9c37fcf1d0cb9f952009757a2131528 (diff)
downloadvolse-hubzilla-118a5edebc745fe2760f781c8bb9e9006bf6215f.tar.gz
volse-hubzilla-118a5edebc745fe2760f781c8bb9e9006bf6215f.tar.bz2
volse-hubzilla-118a5edebc745fe2760f781c8bb9e9006bf6215f.zip
fix warnings and regressions
Diffstat (limited to 'Zotlabs/Web/HTTPSig.php')
-rw-r--r--Zotlabs/Web/HTTPSig.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php
index cb41c2b7d..35b8054e6 100644
--- a/Zotlabs/Web/HTTPSig.php
+++ b/Zotlabs/Web/HTTPSig.php
@@ -299,6 +299,7 @@ class HTTPSig {
// Check the local cache first, but remove any fragments like #main-key since these won't be present in our cached data
$url = ((strpos($id, '#')) ? substr($id, 0, strpos($id, '#')) : $id);
+ $best = [];
// $force is used to ignore the local cache and only use the remote data; for instance the cached key might be stale
if (!$force) {
@@ -374,6 +375,8 @@ class HTTPSig {
static function get_webfinger_key($id, $force = false) {
+ $best = [];
+
if (!$force) {
$x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where hubloc_id_url = '%s' and hubloc_network in ('zot6', 'activitypub') order by hubloc_id desc",
dbesc($id)
@@ -420,6 +423,9 @@ class HTTPSig {
*/
static function get_zotfinger_key($id, $force = false) {
+
+ $best = [];
+
if (!$force) {
$x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where hubloc_id_url = '%s' and hubloc_network = 'zot6' order by hubloc_id desc",
dbesc($id)