From 2f121aa828bd9fa47f546c22fcb4f58c936b3e0a Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 1 Mar 2018 20:44:44 +0000 Subject: [PATCH] When deleting, don't send the parent via DFRN --- src/Worker/Delivery.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index b8eceb05b..fe6fad66b 100644 --- a/src/Worker/Delivery.php +++ b/src/Worker/Delivery.php @@ -242,7 +242,8 @@ class Delivery { } if ($normal_mode) { - if ($item_id == $item['id'] || $item['id'] == $item['parent']) { + // Only add the parent when we don't delete other items. + if ($item_id == $item['id'] || (($item['id'] == $item['parent']) && ($cmd != 'drop'))) { $item["entry:comment-allow"] = true; $item["entry:cid"] = (($top_level) ? $contact['id'] : 0); $msgitems[] = $item;