From: Tobias Diekershoff Date: Sun, 6 Nov 2022 07:57:14 +0000 (+0100) Subject: set the validation to false, and only set it to true if we were able to verify the... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb04eb107bc7d996823919510a0aedeb1d662c8c;p=friendica.git set the validation to false, and only set it to true if we were able to verify the link --- 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); } } }