]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/RemoveContact.php
New "fcontact" model class
[friendica.git] / src / Worker / RemoveContact.php
index 40e3a67fcf8fd933767c782868bcfa975b93b814..28a32160a014c7c830f5f5d5fb71952701792030 100644 (file)
@@ -41,9 +41,9 @@ class RemoveContact {
                // Now we delete the contact and all depending tables
                $condition = ['uid' => $contact['uid'], 'contact-id' => $id];
                do {
-                       $items = Item::select(['id'], $condition, ['limit' => 100]);
+                       $items = Item::select(['id', 'guid'], $condition, ['limit' => 100]);
                        while ($item = Item::fetch($items)) {
-                               Logger::notice('Delete removed contact item', ['id' => $item["id"]]);
+                               Logger::info('Delete removed contact item', ['id' => $item['id'], 'guid' => $item['guid']]);
                                DBA::delete('item', ['id' => $item['id']]);
                        }
                        DBA::close($items);