From c43eccf591c2b269879d932924aea80648841b8b Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 21 Sep 2016 13:24:16 -0700 Subject: zot discovery wasn't returning in all cases (after discovering zot), which means that it could fall through and also discover other protocols and create xchans for them. --- include/network.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/network.php b/include/network.php index fe001b362..de10f1e0e 100644 --- a/include/network.php +++ b/include/network.php @@ -1148,8 +1148,10 @@ function discover_by_webbie($webbie) { if($link['rel'] === PROTOCOL_ZOT) { logger('discover_by_webbie: zot found for ' . $webbie, LOGGER_DEBUG); - if(array_key_exists('zot',$x) && $x['zot']['success']) + if(array_key_exists('zot',$x) && $x['zot']['success']) { $i = import_xchan($x['zot']); + return true; + } else { $z = z_fetch_url($link['href']); if($z['success']) { -- cgit v1.2.3