diff options
author | Malendur <malendur@secret.fyi> | 2021-05-20 08:14:58 +0000 |
---|---|---|
committer | Malendur <malendur@secret.fyi> | 2021-05-20 08:14:58 +0000 |
commit | f9c85c52f30b13a809fecee6ccc8ce978c2f3fe9 (patch) | |
tree | 9b82519031dd3b6fabbb74e3feb9b680f2aad274 /include/items.php | |
parent | 9a5c1aa02f49d695e59ae771765d4e0f8744577a (diff) | |
download | volse-hubzilla-f9c85c52f30b13a809fecee6ccc8ce978c2f3fe9.tar.gz volse-hubzilla-f9c85c52f30b13a809fecee6ccc8ce978c2f3fe9.tar.bz2 volse-hubzilla-f9c85c52f30b13a809fecee6ccc8ce978c2f3fe9.zip |
Remove useless test
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php index 29160c01d..839660509 100644 --- a/include/items.php +++ b/include/items.php @@ -971,7 +971,7 @@ function import_author_xchan($x) { if($y) return $y; - if(!$y && !isset($x['network']) || $x['network'] === 'zot') { + if(!isset($x['network']) || $x['network'] === 'zot') { $y = import_author_zot($x); } @@ -981,8 +981,9 @@ function import_author_xchan($x) { $r = q("SELECT xchan_hash FROM xchan WHERE xchan_url = '%s' AND xchan_network = 'zot6'", dbesc($x['url']) ); - if(! $r) - discover_by_webbie($x['url'], 'zot6'); + // TODO: fix dupplicate with line 960 + if(!$r) + discover_by_webbie($x['url'], 'zot6'); //TODO use the return of discover_by_webbie } return $y; |