use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
- define('DB_UPDATE_VERSION', 1314);
+ define('DB_UPDATE_VERSION', 1315);
}
return [
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();
}
return Update::SUCCESS;
}
+
+function update_1315()
+{
+ DBA::delete('item-delivery-data', ['postopts' => '', 'inform' => '', 'queue_count' => 0, 'queue_done' => 0]);
+}