From fb04eb107bc7d996823919510a0aedeb1d662c8c Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 6 Nov 2022 08:57:14 +0100 Subject: [PATCH] set the validation to false, and only set it to true if we were able to verify the link --- src/Worker/CheckRelMeProfileLink.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Worker/CheckRelMeProfileLink.php b/src/Worker/CheckRelMeProfileLink.php index da3338e34b..306b3afb3e 100644 --- a/src/Worker/CheckRelMeProfileLink.php +++ b/src/Worker/CheckRelMeProfileLink.php @@ -55,6 +55,7 @@ class CheckRelMeProfileLink public static function execute(int $uid) { Logger::notice('Verifying the homepage', [$uid]); + Profile::update(['homepage_verified' => false], $uid); $homepageUrlVerified = false; $owner = User::getOwnerDataById($uid); if (!empty($owner['homepage'])) { @@ -86,14 +87,12 @@ class CheckRelMeProfileLink Profile::update(['homepage_verified' => true], $uid); Logger::notice('Homepage URL verified', [$uid, $owner['homepage']]); } else { - Profile::update(['homepage_verified' => false], $uid); Logger::notice('Homepage URL could not be verified', [$uid, $owner['homepage']]); } } } } else { Logger::notice('The user has no homepage link.', [$uid]); - Profile::update(['homepage_verified' => false], $uid); } } } -- 2.39.5