]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateAllSuggestions.php
spelling: effectiveness
[friendica.git] / src / Worker / UpdateAllSuggestions.php
index 5bc6476145b352867f6cd43cb42f3993a2bff237..69c48aacbf11b1785b94338094a7f52e0a23e6f5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -32,7 +32,7 @@ class UpdateAllSuggestions
 {
        public static function execute()
        {
-               $users = DBA::select('user', ['uid'], ["`login_date` > ?", 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']);
                }