avoide useless cURL request to the profile page

develop
Tobias Diekershoff 2022-11-06 08:43:30 +01:00
rodzic 39908f9083
commit 64f290a055
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -76,7 +76,7 @@ class CheckRelMeProfileLink
$rel = $link->getAttribute('rel');
if ($rel == 'me') {
$href = $link->getAttribute('href');
if (strpos($href, 'http')!==false && !$homepageUrlVerified && Network::isUrlValid($href)) {
if (!$homepageUrlVerified && Network::isValidHttpUrl($href)) {
$homepageUrlVerified = Strings::compareLink($owner['url'], $href);
}
}