mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:10:11 +00:00
Item delivery data must only be stored when there is data
This commit is contained in:
parent
c5d8d82bd2
commit
3121d967c5
3 changed files with 9 additions and 2 deletions
|
@ -1883,7 +1883,9 @@ class Item extends BaseObject
|
|||
self::updateThread($parent_id);
|
||||
}
|
||||
|
||||
ItemDeliveryData::insert($current_post, $delivery_data);
|
||||
if (!empty($item['origin']) || !empty($item['wall']) || !empty($delivery_data['postopts']) || !empty($delivery_data['inform'])) {
|
||||
ItemDeliveryData::insert($current_post, $delivery_data);
|
||||
}
|
||||
|
||||
DBA::commit();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue