mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
Remove unused contacts
This commit is contained in:
parent
f9994548c1
commit
2b8adf5073
4 changed files with 70 additions and 5 deletions
|
@ -62,12 +62,15 @@ class UpdateGServers
|
|||
// There are duplicated "url" but not "nurl". So we check both addresses instead of just overwriting them,
|
||||
// since that would mean loosing data.
|
||||
if (!empty($gserver['url'])) {
|
||||
Worker::add(PRIORITY_LOW, 'UpdateGServer', $gserver['url']);
|
||||
if (Worker::add(PRIORITY_LOW, 'UpdateGServer', $gserver['url'])) {
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
if (!empty($gserver['nurl']) && ($gserver['nurl'] != Strings::normaliseLink($gserver['url']))) {
|
||||
Worker::add(PRIORITY_LOW, 'UpdateGServer', $gserver['nurl']);
|
||||
if (Worker::add(PRIORITY_LOW, 'UpdateGServer', $gserver['nurl'])) {
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
$count++;
|
||||
}
|
||||
DBA::close($gservers);
|
||||
Logger::info('Updated servers', ['count' => $count]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue