aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2020-12-18 09:02:13 +0000
committerMario <mario@mariovavti.com>2020-12-21 09:04:04 +0100
commit01e7e3c24a47fda2f7d2c12973a691d5d5a3572e (patch)
treeed60984d3177b7a75f6ef9675b6c6ed37857e0ea /include
parent8112dee91eeeb973217a40a0be918421e134de39 (diff)
downloadvolse-hubzilla-01e7e3c24a47fda2f7d2c12973a691d5d5a3572e.tar.gz
volse-hubzilla-01e7e3c24a47fda2f7d2c12973a691d5d5a3572e.tar.bz2
volse-hubzilla-01e7e3c24a47fda2f7d2c12973a691d5d5a3572e.zip
handle owa with hubloc_id_url only
(cherry picked from commit ed4bf1c13dd183647499ce4e18c869988f674368)
Diffstat (limited to 'include')
-rw-r--r--include/zid.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/zid.php b/include/zid.php
index 538adcc41..e24b0035d 100644
--- a/include/zid.php
+++ b/include/zid.php
@@ -286,9 +286,7 @@ function owt_init($token) {
}
$r = q("select * from hubloc left join xchan on xchan_hash = hubloc_hash
- where hubloc_addr = '%s' or hubloc_id_url = '%s' or hubloc_hash = '%s' order by hubloc_id desc",
- dbesc($ob_hash),
- dbesc($ob_hash),
+ where hubloc_id_url = '%s' order by hubloc_id desc",
dbesc($ob_hash)
);
@@ -297,9 +295,7 @@ function owt_init($token) {
$wf = discover_by_webbie($ob_hash);
if($wf) {
$r = q("select * from hubloc left join xchan on xchan_hash = hubloc_hash
- where hubloc_addr = '%s' or hubloc_id_url = '%s' or hubloc_hash = '%s' order by hubloc_id desc",
- dbesc($ob_hash),
- dbesc($ob_hash),
+ where hubloc_id_url = '%s' order by hubloc_id desc",
dbesc($ob_hash)
);
}