When the profile is updated, let the Worker verify the homepage link

This commit is contained in:
Tobias Diekershoff 2022-11-05 10:00:22 +01:00
parent 30b9a57a37
commit c8636db9f6

View File

@ -38,6 +38,7 @@ use Friendica\Module\Security\Login;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
use Friendica\Util\DateTimeFormat; use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal; use Friendica\Util\Temporal;
use Friendica\Core\Worker;
class Index extends BaseSettings class Index extends BaseSettings
{ {
@ -127,6 +128,8 @@ class Index extends BaseSettings
DI::userSession()->getLocalUserId() DI::userSession()->getLocalUserId()
); );
Worker::add(Worker::PRIORITY_MEDIUM, 'CheckRelMeProfileLink', DI::userSession()->getLocalUserId());
if (!$result) { if (!$result) {
DI::sysmsg()->addNotice(DI::l10n()->t('Profile couldn\'t be updated.')); DI::sysmsg()->addNotice(DI::l10n()->t('Profile couldn\'t be updated.'));
return; return;