aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorPascal Deklerck <pascal@nubo.coop>2023-05-09 07:48:52 +0000
committerMario <mario@mariovavti.com>2023-05-09 07:48:52 +0000
commit548589be4db615562eea3776fa99c82d77349cf3 (patch)
treef111b6b623e91bd526f30104e05c70a502af6c53 /Zotlabs
parent4227d973b904ee6dde7c3f41d805a11cd9f271e7 (diff)
downloadvolse-hubzilla-548589be4db615562eea3776fa99c82d77349cf3.tar.gz
volse-hubzilla-548589be4db615562eea3776fa99c82d77349cf3.tar.bz2
volse-hubzilla-548589be4db615562eea3776fa99c82d77349cf3.zip
Owa compatibility for Friendica
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Owa.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Owa.php b/Zotlabs/Module/Owa.php
index 3400defd7..02997d3f1 100644
--- a/Zotlabs/Module/Owa.php
+++ b/Zotlabs/Module/Owa.php
@@ -32,7 +32,8 @@ class Owa extends Controller {
$keyId = $sigblock['keyId'];
if ($keyId) {
$r = q("SELECT * FROM hubloc LEFT JOIN xchan ON hubloc_hash = xchan_hash
- WHERE hubloc_id_url = '%s' AND hubloc_deleted = 0 AND xchan_pubkey != '' ORDER BY hubloc_id DESC",
+ WHERE ( hubloc_addr = '%s' OR hubloc_id_url = '%s' ) AND hubloc_deleted = 0 AND xchan_pubkey != '' ORDER BY hubloc_id DESC",
+ dbesc(str_replace('acct:', '', $keyId)),
dbesc($keyId)
);
if (! $r) {