import authors from any unrecognised network as network 'unknown'.

This commit is contained in:
zotlabs 2017-04-02 17:09:51 -07:00
parent 044067f055
commit d985db60cc

View File

@ -762,6 +762,8 @@ function import_author_xchan($x) {
if($arr['xchan_hash']) if($arr['xchan_hash'])
return $arr['xchan_hash']; return $arr['xchan_hash'];
$y = false;
if((! array_key_exists('network', $x)) || ($x['network'] === 'zot')) { if((! array_key_exists('network', $x)) || ($x['network'] === 'zot')) {
$y = import_author_zot($x); $y = import_author_zot($x);
} }
@ -770,9 +772,7 @@ function import_author_xchan($x) {
$y = import_author_rss($x); $y = import_author_rss($x);
} }
if($x['network'] === 'unknown') {
$y = import_author_unknown($x); $y = import_author_unknown($x);
}
return(($y) ? $y : false); return(($y) ? $y : false);
} }