diff options
author | redmatrix <mike@macgirvin.com> | 2016-09-21 13:24:16 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-09-21 13:24:16 -0700 |
commit | c43eccf591c2b269879d932924aea80648841b8b (patch) | |
tree | f743d71a8003f88d552a60319b086e4e1a1b9530 | |
parent | 4511f8855b195d7c675ffe9f128b0db1be120b1b (diff) | |
download | volse-hubzilla-c43eccf591c2b269879d932924aea80648841b8b.tar.gz volse-hubzilla-c43eccf591c2b269879d932924aea80648841b8b.tar.bz2 volse-hubzilla-c43eccf591c2b269879d932924aea80648841b8b.zip |
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.
-rw-r--r-- | include/network.php | 4 |
1 files changed, 3 insertions, 1 deletions
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']) { |