From 910a76812a67b331c5c69a7da97f5a6b6eeabd67 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 1 Dec 2022 05:53:18 +0000 Subject: [PATCH] Reenable worker call --- src/Security/Authentication.php | 6 +++--- src/Security/OAuth.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Security/Authentication.php b/src/Security/Authentication.php index a9bf70d214..47407b1338 100644 --- a/src/Security/Authentication.php +++ b/src/Security/Authentication.php @@ -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) { diff --git a/src/Security/OAuth.php b/src/Security/OAuth.php index eb4f68b7fd..54b412735a 100644 --- a/src/Security/OAuth.php +++ b/src/Security/OAuth.php @@ -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; } -- 2.39.5