]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong condition in Diaspora\Fetch
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 11 Jul 2020 13:18:42 +0000 (09:18 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 11 Jul 2020 13:18:42 +0000 (09:18 -0400)
src/Module/Diaspora/Fetch.php

index aba9d33be7025aa43c09685c60a971d8f0e396bb..c94badf7e38cbbfca70b8857810b227a6012b1d8 100644 (file)
@@ -59,7 +59,7 @@ class Fetch extends BaseModule
                if (empty($item)) {
                        $condition = ['guid' => $guid, 'network' => [Protocol::DFRN, Protocol::DIASPORA]];
                        $item = Item::selectFirst(['author-link'], $condition);
-                       if (empty($item)) {
+                       if (!empty($item["author-link"])) {
                                $parts = parse_url($item["author-link"]);
                                if (empty($parts["scheme"]) || empty($parts["host"])) {
                                        throw new HTTPException\InternalServerErrorException();