From c8636db9f6c784a6d95d8c27bbd712ca03af07c3 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sat, 5 Nov 2022 10:00:22 +0100 Subject: [PATCH] When the profile is updated, let the Worker verify the homepage link --- src/Module/Settings/Profile/Index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Module/Settings/Profile/Index.php b/src/Module/Settings/Profile/Index.php index 14fe613c18..5c6f753ce7 100644 --- a/src/Module/Settings/Profile/Index.php +++ b/src/Module/Settings/Profile/Index.php @@ -38,6 +38,7 @@ use Friendica\Module\Security\Login; use Friendica\Network\HTTPException; use Friendica\Util\DateTimeFormat; use Friendica\Util\Temporal; +use Friendica\Core\Worker; class Index extends BaseSettings { @@ -127,6 +128,8 @@ class Index extends BaseSettings DI::userSession()->getLocalUserId() ); + Worker::add(Worker::PRIORITY_MEDIUM, 'CheckRelMeProfileLink', DI::userSession()->getLocalUserId()); + if (!$result) { DI::sysmsg()->addNotice(DI::l10n()->t('Profile couldn\'t be updated.')); return; -- 2.39.5