When deleting, don't send the parent via DFRN

2022.09-rc
Michael 2018-03-01 20:44:44 +00:00
rodzic 1693633e05
commit 2f121aa828
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -242,7 +242,8 @@ class Delivery {
} }
if ($normal_mode) { 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:comment-allow"] = true;
$item["entry:cid"] = (($top_level) ? $contact['id'] : 0); $item["entry:cid"] = (($top_level) ? $contact['id'] : 0);
$msgitems[] = $item; $msgitems[] = $item;