avoide useless cURL request to the profile page

This commit is contained in:
Tobias Diekershoff 2022-11-06 08:43:30 +01:00
parent 39908f9083
commit 64f290a055
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}