]> git.mxchange.org Git - friendica.git/commitdiff
Only delete undeleted items
authorMichael <heluecht@pirati.ca>
Tue, 15 May 2018 19:25:35 +0000 (19:25 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 15 May 2018 19:25:35 +0000 (19:25 +0000)
src/Model/Item.php

index 210a6010976c5b40fd078705142152876f166485..dfb7ea065cfd4ac736198e69f4380f91877fadfa 100644 (file)
@@ -189,7 +189,7 @@ class Item extends BaseObject
 
                // If it's the parent of a comment thread, kill all the kids
                if ($item['id'] == $item['parent']) {
-                       self::delete(['parent' => $item['parent']], $priority);
+                       self::delete(['parent' => $item['parent'], 'deleted' => false], $priority);
                }
 
                // Is it our comment and/or our thread?