From 227813ac3c321419bd07ec45072c079d9494230a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 22 Sep 2020 11:26:51 -0400 Subject: [PATCH] Prevent DeliveryData update if uri-id field is NULL in Model\Item - Address https://github.com/friendica/friendica/issues/9250#issuecomment-696294754 --- src/Model/Item.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index d03e9ec354..cf4c5563b8 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -992,7 +992,9 @@ class Item } } - Post\DeliveryData::update($item['uri-id'], $delivery_data); + if ($item['uri-id']) { + Post\DeliveryData::update($item['uri-id'], $delivery_data); + } self::updateThread($item['id']);