X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FUpdateAllSuggestions.php;h=69c48aacbf11b1785b94338094a7f52e0a23e6f5;hb=4139134cfd2f86ba6fec2adef37bca16ab466514;hp=5bc6476145b352867f6cd43cb42f3993a2bff237;hpb=fbcc56d42dfcf5e628fe6c5fd7be3be598b53797;p=friendica.git diff --git a/src/Worker/UpdateAllSuggestions.php b/src/Worker/UpdateAllSuggestions.php index 5bc6476145..69c48aacbf 100644 --- a/src/Worker/UpdateAllSuggestions.php +++ b/src/Worker/UpdateAllSuggestions.php @@ -1,6 +1,6 @@ ?", DateTimeFormat::utc('now - 7 days')]); + $users = DBA::select('user', ['uid'], ["`last-activity` > ?", DateTimeFormat::utc('now - 3 days', 'Y-m-d')]); while ($user = DBA::fetch($users)) { Contact\Relation::updateCachedSuggestions($user['uid']); }