mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Remove unused contacts
This commit is contained in:
parent
f9994548c1
commit
2b8adf5073
4 changed files with 70 additions and 5 deletions
|
@ -74,8 +74,9 @@ class UpdateContacts
|
|||
|
||||
$count = 0;
|
||||
foreach ($ids as $id) {
|
||||
Worker::add(PRIORITY_LOW, "UpdateContact", $id);
|
||||
++$count;
|
||||
if (Worker::add(PRIORITY_LOW, "UpdateContact", $id)) {
|
||||
++$count;
|
||||
}
|
||||
}
|
||||
|
||||
Logger::info('Initiated update for federated contacts', ['count' => $count]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue