import authors from any unrecognised network as network 'unknown'.
This commit is contained in:
parent
19b2568133
commit
c8a886e399
@ -769,6 +769,8 @@ function import_author_xchan($x) {
|
||||
if($arr['xchan_hash'])
|
||||
return $arr['xchan_hash'];
|
||||
|
||||
$y = false;
|
||||
|
||||
if((! array_key_exists('network', $x)) || ($x['network'] === 'zot')) {
|
||||
$y = import_author_zot($x);
|
||||
}
|
||||
@ -779,9 +781,7 @@ function import_author_xchan($x) {
|
||||
$y = import_author_rss($x);
|
||||
}
|
||||
|
||||
if($x['network'] === 'unknown') {
|
||||
$y = import_author_unknown($x);
|
||||
}
|
||||
|
||||
return(($y) ? $y : false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user