From: Michael Date: Thu, 1 Mar 2018 20:44:44 +0000 (+0000) Subject: When deleting, don't send the parent via DFRN X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f121aa828bd9fa47f546c22fcb4f58c936b3e0a;p=friendica.git When deleting, don't send the parent via DFRN --- diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index b8eceb05bc..fe6fad66b0 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;