Avoid endless loop while deleting
This commit is contained in:
parent
505191dec5
commit
3c71392f9e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user