aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-21 13:24:16 -0700
committerredmatrix <mike@macgirvin.com>2016-09-21 13:24:16 -0700
commitc43eccf591c2b269879d932924aea80648841b8b (patch)
treef743d71a8003f88d552a60319b086e4e1a1b9530 /include
parent4511f8855b195d7c675ffe9f128b0db1be120b1b (diff)
downloadvolse-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.
Diffstat (limited to 'include')
-rw-r--r--include/network.php4
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']) {