]> git.mxchange.org Git - friendica.git/commitdiff
Fix user account removal expiration delay
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 25 Nov 2018 01:59:18 +0000 (20:59 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 25 Nov 2018 01:59:18 +0000 (20:59 -0500)
src/Model/User.php

index d162b27b6acb59c9434950ad312f2d1b691ae419..aef4bcbfc2878f9d132d81778ae59918eae805bd 100644 (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