]> git.mxchange.org Git - friendica.git/commitdiff
Normalize quotes in User::remove
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 25 Nov 2018 01:58:11 +0000 (20:58 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 25 Nov 2018 01:58:11 +0000 (20:58 -0500)
src/Model/User.php

index aa05b492b00d3afbfdb01250770f7cb9eb01e00a..43227a86da8fb51d142d45be137948e4b493914a 100644 (file)
@@ -799,15 +799,15 @@ 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]);
-               Worker::add(PRIORITY_HIGH, "Notifier", "removeme", $uid);
+               DBA::update('user', ['account_removed' => true, 'account_expires_on' => DateTimeFormat::utc(DateTimeFormat::utcNow() . ' + 7 day')], ['uid' => $uid]);
+               Worker::add(PRIORITY_HIGH, 'Notifier', 'removeme', $uid);
 
                // Send an update to the directory
                $self = DBA::selectFirst('contact', ['url'], ['uid' => $uid, 'self' => true]);
-               Worker::add(PRIORITY_LOW, "Directory", $self['url']);
+               Worker::add(PRIORITY_LOW, 'Directory', $self['url']);
 
                // Remove the user relevant data
-               Worker::add(PRIORITY_LOW, "RemoveUser", $uid);
+               Worker::add(PRIORITY_LOW, 'RemoveUser', $uid);
 
                if ($uid == local_user()) {
                        unset($_SESSION['authenticated']);