From: Michael Date: Tue, 14 Feb 2023 21:19:47 +0000 (+0000) Subject: Fix fatal error because of an invalid url X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a3cb43805c4f52c26c4df66b787e3d84d4b9be3c;p=friendica.git Fix fatal error because of an invalid url --- diff --git a/src/Model/GServer.php b/src/Model/GServer.php index a74f50fd65..0a3590419b 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -1060,10 +1060,11 @@ class GServer Logger::info('Invalid nodeinfo format', ['url' => $url]); continue; } + if ($link['rel'] == 'http://nodeinfo.diaspora.software/ns/schema/1.0') { - $nodeinfo1_url = $link['href']; + $nodeinfo1_url = Network::addBasePath($link['href'], $httpResult->getUrl()); } elseif ($link['rel'] == 'http://nodeinfo.diaspora.software/ns/schema/2.0') { - $nodeinfo2_url = $link['href']; + $nodeinfo2_url = Network::addBasePath($link['href'], $httpResult->getUrl()); } }