Avoid endless loop while deleting

This commit is contained in:
Michael 2022-07-27 21:57:05 +00:00
parent 505191dec5
commit 3c71392f9e

View File

@ -128,6 +128,9 @@ class Queue
$children = DBA::select('inbox-entry', ['id'], ['in-reply-to-id' => $entry['object-id']]); $children = DBA::select('inbox-entry', ['id'], ['in-reply-to-id' => $entry['object-id']]);
while ($child = DBA::fetch($children)) { while ($child = DBA::fetch($children)) {
if ($id == $child['id']) {
continue;
}
self::deleteById($child['id']); self::deleteById($child['id']);
} }
DBA::close($children); DBA::close($children);