]> git.mxchange.org Git - friendica.git/commitdiff
Avoid endless loop while deleting
authorMichael <heluecht@pirati.ca>
Wed, 27 Jul 2022 21:57:05 +0000 (21:57 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 27 Jul 2022 21:57:05 +0000 (21:57 +0000)
src/Protocol/ActivityPub/Queue.php

index b8521325815fbe9919788e1e8cf54ff0b81336b0..49d448bac1a39a95b01222bb3295a960f7e8e705 100644 (file)
@@ -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);