From 64f290a0551d9e585dbbeffa0ea333bb90c0c389 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 6 Nov 2022 08:43:30 +0100 Subject: [PATCH] avoide useless cURL request to the profile page --- src/Worker/CheckRelMeProfileLink.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/CheckRelMeProfileLink.php b/src/Worker/CheckRelMeProfileLink.php index f42c9b84b..da3338e34 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); } }