Browse Source

Fix user account removal expiration delay

pull/6198/head
Hypolite Petovan 2 years ago
parent
commit
92556e5161
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Model/User.php

+ 1
- 1
src/Model/User.php View File

@ -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…
Cancel
Save