diff options
author | zotlabs <mike@macgirvin.com> | 2017-04-02 17:09:51 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-04-03 10:48:41 +0200 |
commit | c8a886e3990b705b011e7c2c2306d3179eb824a4 (patch) | |
tree | fa2303d6c7df0011b553c16cf459aded040d8a12 | |
parent | 19b2568133d14cd27cc1340defac733ee0cd4ad3 (diff) | |
download | volse-hubzilla-c8a886e3990b705b011e7c2c2306d3179eb824a4.tar.gz volse-hubzilla-c8a886e3990b705b011e7c2c2306d3179eb824a4.tar.bz2 volse-hubzilla-c8a886e3990b705b011e7c2c2306d3179eb824a4.zip |
import authors from any unrecognised network as network 'unknown'.
-rwxr-xr-x | include/items.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php index 304a7acfc..a0f366a4a 100755 --- a/include/items.php +++ b/include/items.php @@ -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); - } + $y = import_author_unknown($x); return(($y) ? $y : false); } |