From a3cb43805c4f52c26c4df66b787e3d84d4b9be3c Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 14 Feb 2023 21:19:47 +0000 Subject: [PATCH] Fix fatal error because of an invalid url --- src/Model/GServer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()); } }