Fixes the score calculation concerning the relation-cid / cid interaction

This commit is contained in:
Michael 2023-09-07 12:34:46 +00:00
parent 41f3cbf727
commit c1895e7f85
7 changed files with 200 additions and 156 deletions

View file

@ -144,6 +144,13 @@ class Cron
}
DBA::close($users);
// Update contact relations for our users
$users = DBA::select('user', ['uid'], ["NOT `account_expired` AND NOT `account_removed` AND `uid` > ?", 0]);
while ($user = DBA::fetch($users)) {
Worker::add(Worker::PRIORITY_LOW, 'ContactDiscoveryForUser', $user['uid']);
}
DBA::close($users);
// Resubscribe to relay servers
Relay::reSubscribe();