mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Detect and remove contact duplicates
This commit is contained in:
parent
636325efcc
commit
79b64cc44f
15 changed files with 281 additions and 60 deletions
|
@ -78,7 +78,7 @@ class RemoveUnusedContacts
|
|||
DBA::delete('post-thread-user', ['author-id' => $contact['id']]);
|
||||
DBA::delete('post-thread-user', ['causer-id' => $contact['id']]);
|
||||
|
||||
DBA::delete('contact', ['id' => $contact['id']]);
|
||||
Contact::deleteById($contact['id']);
|
||||
if ((++$count % 1000) == 0) {
|
||||
Logger::info('In removal', ['count' => $count, 'total' => $total]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue