From 3c71392f9e99aeddba79aa477b8c151d19039e69 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 27 Jul 2022 21:57:05 +0000 Subject: [PATCH] Avoid endless loop while deleting --- src/Protocol/ActivityPub/Queue.php | 3 +++ 1 file changed, 3 insertions(+) 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);