From: Michael Date: Tue, 15 May 2018 19:25:35 +0000 (+0000) Subject: Only delete undeleted items X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82937189ba58b525a772ad56f0a963b27329058b;p=friendica.git Only delete undeleted items --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 210a601097..dfb7ea065c 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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?