From: Michael Date: Wed, 27 Jul 2022 21:57:05 +0000 (+0000) Subject: Avoid endless loop while deleting X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3c71392f9e99aeddba79aa477b8c151d19039e69;p=friendica.git Avoid endless loop while deleting --- diff --git a/src/Protocol/ActivityPub/Queue.php b/src/Protocol/ActivityPub/Queue.php index b852132581..49d448bac1 100644 --- a/src/Protocol/ActivityPub/Queue.php +++ b/src/Protocol/ActivityPub/Queue.php @@ -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);