Fix user account removal expiration delay
This commit is contained in:
parent
54f4ac6ae0
commit
92556e5161
|
@ -799,7 +799,7 @@ class User
|
|||
DBA::insert('userd', ['username' => $user['nickname']]);
|
||||
|
||||
// The user and related data will be deleted in "cron_expire_and_remove_users" (cronjobs.php)
|
||||
DBA::update('user', ['account_removed' => true, 'account_expires_on' => DateTimeFormat::utc(DateTimeFormat::utcNow() . ' + 7 day')], ['uid' => $uid]);
|
||||
DBA::update('user', ['account_removed' => true, 'account_expires_on' => DateTimeFormat::utc('now + 7 day')], ['uid' => $uid]);
|
||||
Worker::add(PRIORITY_HIGH, 'Notifier', 'removeme', $uid);
|
||||
|
||||
// Send an update to the directory
|
||||
|
|
Loading…
Reference in a new issue