aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-12 19:05:21 +0000
committerMario <mario@mariovavti.com>2021-10-12 19:05:21 +0000
commitba6f0699972af6e984802cb0460c8fecd43afa59 (patch)
treec3738a67be631d3c422b1774566739826ff2702b
parentc6c6b52ccd6aa7973c9b4bdafb859fef237e8822 (diff)
downloadvolse-hubzilla-ba6f0699972af6e984802cb0460c8fecd43afa59.tar.gz
volse-hubzilla-ba6f0699972af6e984802cb0460c8fecd43afa59.tar.bz2
volse-hubzilla-ba6f0699972af6e984802cb0460c8fecd43afa59.zip
HTTPSig: do not query for hubloc_addr
-rw-r--r--Zotlabs/Web/HTTPSig.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php
index 5aa1e1913..7da9acabf 100644
--- a/Zotlabs/Web/HTTPSig.php
+++ b/Zotlabs/Web/HTTPSig.php
@@ -281,8 +281,7 @@ class HTTPSig {
// $force is used to ignore the local cache and only use the remote data; for instance the cached key might be stale
if (!$force) {
- $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where (hubloc_addr = '%s' or (hubloc_id_url = '%s' or hubloc_hash = '%s')) and hubloc_network in ('zot6', 'activitypub') order by hubloc_id desc",
- dbesc(str_replace('acct:', '', $url)),
+ $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where (hubloc_id_url = '%s' or hubloc_hash = '%s') and hubloc_network in ('zot6', 'activitypub') order by hubloc_id desc",
dbesc($url),
dbesc($url)
);
@@ -323,8 +322,7 @@ class HTTPSig {
static function get_webfinger_key($id, $force = false) {
if (!$force) {
- $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where hubloc_addr = '%s' or hubloc_id_url = '%s' and hubloc_network in ('zot6', 'activitypub') order by hubloc_id desc",
- dbesc(str_replace('acct:', '', $id)),
+ $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)
);
@@ -370,8 +368,7 @@ class HTTPSig {
static function get_zotfinger_key($id, $force = false) {
if (!$force) {
- $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where hubloc_addr = '%s' or hubloc_id_url = '%s' and hubloc_network = 'zot6' order by hubloc_id desc",
- dbesc(str_replace('acct:', '', $id)),
+ $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)
);