From: Michael Date: Thu, 1 Dec 2022 05:53:18 +0000 (+0000) Subject: Reenable worker call X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=910a76812a67b331c5c69a7da97f5a6b6eeabd67;p=friendica.git Reenable worker call --- 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; }