X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FUpdateContacts.php;h=c1f38a3b43b976b68d04ed4f016176b6cac29ba3;hb=bf8fb215a9cc554b5ec5b774168a52fb56fa43e6;hp=bf234d989c0983923434cebe869040708433609a;hpb=8e9a9b2049617a61beca85c5f03534aff09ecae7;p=friendica.git diff --git a/src/Worker/UpdateContacts.php b/src/Worker/UpdateContacts.php index bf234d989c..c1f38a3b43 100644 --- a/src/Worker/UpdateContacts.php +++ b/src/Worker/UpdateContacts.php @@ -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]);