]> git.mxchange.org Git - friendica.git/commitdiff
Reenable worker call
authorMichael <heluecht@pirati.ca>
Thu, 1 Dec 2022 05:53:18 +0000 (05:53 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 1 Dec 2022 05:53:18 +0000 (05:53 +0000)
src/Security/Authentication.php
src/Security/OAuth.php

index a9bf70d2140c5379b7abcd21be8ee699b6914913..47407b13384ee92dc2e1d19a99f9d216b9381d8c 100644 (file)
@@ -362,9 +362,9 @@ class Authentication
 //                     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 eb4f68b7fd33bdf0c689a76eb4253707a85a489f..54b412735a70247a5017b53507f4b928a919a8ff 100644 (file)
@@ -107,9 +107,9 @@ class OAuth
 //             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;
        }