Avoid loops at deletion / decoupling for relay posts

This commit is contained in:
Michael 2022-07-28 05:29:47 +00:00
parent 08e9b2cc12
commit a27274b3b4
4 changed files with 20 additions and 25 deletions

View file

@ -126,14 +126,6 @@ class Queue
return;
}
$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);
DBA::delete('inbox-entry', ['id' => $entry['id']]);
}