mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Avoid endless loop while deleting
This commit is contained in:
parent
505191dec5
commit
3c71392f9e
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,9 @@ class Queue
|
|||
|
||||
$children = DBA::select('inbox-entry', ['id'], ['in-reply-to-id' => $entry['object-id']]);
|
||||
while ($child = DBA::fetch($children)) {
|
||||
if ($id == $child['id']) {
|
||||
continue;
|
||||
}
|
||||
self::deleteById($child['id']);
|
||||
}
|
||||
DBA::close($children);
|
||||
|
|
Loading…
Reference in a new issue