aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-09 19:57:55 +0000
committerMario <mario@mariovavti.com>2021-01-09 19:57:55 +0000
commitff100a499a2813c1ffa31db04936b04d4b2c8eb4 (patch)
tree5fc36c9d509e7f394a9dad42989a71f457f393f6 /Zotlabs/Module
parentf48d844e4292163da1603e174fabab9c670b8cd2 (diff)
downloadvolse-hubzilla-ff100a499a2813c1ffa31db04936b04d4b2c8eb4.tar.gz
volse-hubzilla-ff100a499a2813c1ffa31db04936b04d4b2c8eb4.tar.bz2
volse-hubzilla-ff100a499a2813c1ffa31db04936b04d4b2c8eb4.zip
keyid adapt for backward compatibility to current release
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Getfile.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Module/Getfile.php b/Zotlabs/Module/Getfile.php
index 20cc23ac0..a867f5ff7 100644
--- a/Zotlabs/Module/Getfile.php
+++ b/Zotlabs/Module/Getfile.php
@@ -54,9 +54,10 @@ 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_id_url = '%s'",
- dbesc(str_replace('acct:','',$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)
);
if($r) {
$hubloc = Libzot::zot_record_preferred($r);