avoide useless cURL request to the profile page
This commit is contained in:
@@ -76,7 +76,7 @@ class CheckRelMeProfileLink
|
|||||||
$rel = $link->getAttribute('rel');
|
$rel = $link->getAttribute('rel');
|
||||||
if ($rel == 'me') {
|
if ($rel == 'me') {
|
||||||
$href = $link->getAttribute('href');
|
$href = $link->getAttribute('href');
|
||||||
if (strpos($href, 'http')!==false && !$homepageUrlVerified && Network::isUrlValid($href)) {
|
if (!$homepageUrlVerified && Network::isValidHttpUrl($href)) {
|
||||||
$homepageUrlVerified = Strings::compareLink($owner['url'], $href);
|
$homepageUrlVerified = Strings::compareLink($owner['url'], $href);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user