]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error because of an invalid url
authorMichael <heluecht@pirati.ca>
Tue, 14 Feb 2023 21:19:47 +0000 (21:19 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 14 Feb 2023 21:19:47 +0000 (21:19 +0000)
src/Model/GServer.php

index a74f50fd65e16cc42d4bc1465d5b2a4eb1c2a09e..0a3590419b59f499890f259ed0ccf741ba4a950e 100644 (file)
@@ -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());
                        }
                }