From: Michael Date: Thu, 1 Dec 2022 05:50:34 +0000 (+0000) Subject: Debug the failing test X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c56e4222dcdac3a4e496a28b87f94e9d5adeb6a2;p=friendica.git Debug the failing test --- diff --git a/src/Security/Authentication.php b/src/Security/Authentication.php index 62318bedbf..a9bf70d214 100644 --- a/src/Security/Authentication.php +++ b/src/Security/Authentication.php @@ -359,12 +359,12 @@ class Authentication $this->dba->update('user', ['login_date' => DateTimeFormat::utcNow()], ['parent-uid' => $user_record['uid'], 'account_removed' => false]); - User::updateLastActivity($user_record['uid']); +// User::updateLastActivity($user_record['uid']); // Regularly update suggestions - if (Contact\Relation::areSuggestionsOutdated($user_record['uid'])) { - Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $user_record['uid']); - } +// if (Contact\Relation::areSuggestionsOutdated($user_record['uid'])) { +// Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $user_record['uid']); +// } } if ($login_initial) { diff --git a/src/Security/OAuth.php b/src/Security/OAuth.php index 27a3dfa11b..eb4f68b7fd 100644 --- a/src/Security/OAuth.php +++ b/src/Security/OAuth.php @@ -104,12 +104,12 @@ class OAuth } Logger::debug('Token found', $token); - User::updateLastActivity($token['uid']); +// User::updateLastActivity($token['uid']); // Regularly update suggestions - if (Contact\Relation::areSuggestionsOutdated($token['uid'])) { - Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']); - } +// if (Contact\Relation::areSuggestionsOutdated($token['uid'])) { +// Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']); +// } return $token; }