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.

This commit is contained in:
redmatrix 2016-09-21 13:24:16 -07:00
parent 4511f8855b
commit c43eccf591

View File

@ -1148,8 +1148,10 @@ function discover_by_webbie($webbie) {
if($link['rel'] === PROTOCOL_ZOT) { if($link['rel'] === PROTOCOL_ZOT) {
logger('discover_by_webbie: zot found for ' . $webbie, LOGGER_DEBUG); 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']); $i = import_xchan($x['zot']);
return true;
}
else { else {
$z = z_fetch_url($link['href']); $z = z_fetch_url($link['href']);
if($z['success']) { if($z['success']) {