]> git.mxchange.org Git - friendica.git/commitdiff
Debug the failing test
authorMichael <heluecht@pirati.ca>
Thu, 1 Dec 2022 05:50:34 +0000 (05:50 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 1 Dec 2022 05:50:34 +0000 (05:50 +0000)
src/Security/Authentication.php
src/Security/OAuth.php

index 62318bedbf2229c8cedb89a70ac84834213bfb2d..a9bf70d2140c5379b7abcd21be8ee699b6914913 100644 (file)
@@ -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) {
index 27a3dfa11b2328f83c1cc60f6b86dfe98bafd6e0..eb4f68b7fd33bdf0c689a76eb4253707a85a489f 100644 (file)
@@ -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;
        }