]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateAllSuggestions.php
Fix Mastodon InstanceV2 structure needs image max size under mediaAttachment
[friendica.git] / src / Worker / UpdateAllSuggestions.php
index b1c84b639e8fa7b9be81538ea4b8ca108500c031..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,9 +32,9 @@ 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::updateSuggestions($user['uid']);
+                       Contact\Relation::updateCachedSuggestions($user['uid']);
                }
                DBA::close($users);
        }