aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-13 09:34:03 +0000
committerMario <mario@mariovavti.com>2021-01-13 09:34:03 +0000
commit01bd8464338e883afe375dc88e67b690a7744388 (patch)
treeadef43887c2c2e3ab48c58dd90336ca80239ac74
parentb9fd87b004fe083c3f8064de5defea4ff439bce0 (diff)
downloadvolse-hubzilla-01bd8464338e883afe375dc88e67b690a7744388.tar.gz
volse-hubzilla-01bd8464338e883afe375dc88e67b690a7744388.tar.bz2
volse-hubzilla-01bd8464338e883afe375dc88e67b690a7744388.zip
Revert "keyid adapt for backward compatibility to current release"
This reverts commit ff100a499a2813c1ffa31db04936b04d4b2c8eb4.
-rw-r--r--Zotlabs/Module/Getfile.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/Zotlabs/Module/Getfile.php b/Zotlabs/Module/Getfile.php
index a867f5ff7..20cc23ac0 100644
--- a/Zotlabs/Module/Getfile.php
+++ b/Zotlabs/Module/Getfile.php
@@ -54,10 +54,9 @@ class Getfile extends \Zotlabs\Web\Controller {
$keyId = $sigblock['keyId'];
if($keyId) {
- $r = q("SELECT * FROM hubloc LEFT JOIN xchan ON hubloc_hash = xchan_hash
- WHERE hubloc_addr = '%s' OR hubloc_id_url = '%s'",
- dbesc(str_replace('acct:','',$keyId)),
- dbesc($keyId)
+ $r = q("select * from hubloc left join xchan on hubloc_hash = xchan_hash
+ where hubloc_id_url = '%s'",
+ dbesc(str_replace('acct:','',$keyId))
);
if($r) {
$hubloc = Libzot::zot_record_preferred($r);