]> git.mxchange.org Git - friendica.git/commitdiff
set the validation to false, and only set it to true if we were able to verify the...
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 6 Nov 2022 07:57:14 +0000 (08:57 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 7 Nov 2022 10:19:33 +0000 (11:19 +0100)
src/Worker/CheckRelMeProfileLink.php

index da3338e34b7c4a16da76cb8b933763c29c9486aa..306b3afb3e2434332ea141d9436628618706d354 100644 (file)
@@ -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);
                }
        }
 }