From 01e7e3c24a47fda2f7d2c12973a691d5d5a3572e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 18 Dec 2020 09:02:13 +0000 Subject: handle owa with hubloc_id_url only (cherry picked from commit ed4bf1c13dd183647499ce4e18c869988f674368) --- include/zid.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'include/zid.php') 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) ); } -- cgit v1.2.3