]> git.mxchange.org Git - friendica.git/commitdiff
avoide useless cURL request to the profile page
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 6 Nov 2022 07:43:30 +0000 (08:43 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 7 Nov 2022 10:19:33 +0000 (11:19 +0100)
src/Worker/CheckRelMeProfileLink.php

index f42c9b84ba8766af670168786651f62207be366a..da3338e34b7c4a16da76cb8b933763c29c9486aa 100644 (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);
                                                                }
                                                        }