aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-02 17:09:51 -0700
committerzotlabs <mike@macgirvin.com>2017-04-02 17:09:51 -0700
commitd985db60cca1256698f15a9cb7a39688c72ec082 (patch)
tree35d81e49657eca1252a814ac06b59c74c60be4e3
parent044067f0556be3b896fc1b183038777d971e9b57 (diff)
downloadvolse-hubzilla-d985db60cca1256698f15a9cb7a39688c72ec082.tar.gz
volse-hubzilla-d985db60cca1256698f15a9cb7a39688c72ec082.tar.bz2
volse-hubzilla-d985db60cca1256698f15a9cb7a39688c72ec082.zip
import authors from any unrecognised network as network 'unknown'.
-rwxr-xr-xinclude/items.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index 3d0f380b4..4ef52fb41 100755
--- a/include/items.php
+++ b/include/items.php
@@ -762,6 +762,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);
}
@@ -770,9 +772,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);
}