When the profile is updated, let the Worker verify the homepage link
This commit is contained in:
parent
30b9a57a37
commit
c8636db9f6
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue