From: Tobias Diekershoff Date: Sun, 6 Nov 2022 07:43:30 +0000 (+0100) Subject: avoide useless cURL request to the profile page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=64f290a0551d9e585dbbeffa0ea333bb90c0c389;p=friendica.git avoide useless cURL request to the profile page --- diff --git a/src/Worker/CheckRelMeProfileLink.php b/src/Worker/CheckRelMeProfileLink.php index f42c9b84ba..da3338e34b 100644 --- a/src/Worker/CheckRelMeProfileLink.php +++ b/src/Worker/CheckRelMeProfileLink.php @@ -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); } }