aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-11-08 22:24:33 +0100
committerMario Vavti <mario@mariovavti.com>2024-11-08 22:24:33 +0100
commitebad9d56c9e9396847a66c07124e863cc2940b3c (patch)
tree427bf605076aaa25d3f3751d91fe97a4c5e6a462 /include/import.php
parent0481901b593f861366f9a766e0f020cce7a31be7 (diff)
downloadvolse-hubzilla-ebad9d56c9e9396847a66c07124e863cc2940b3c.tar.gz
volse-hubzilla-ebad9d56c9e9396847a66c07124e863cc2940b3c.tar.bz2
volse-hubzilla-ebad9d56c9e9396847a66c07124e863cc2940b3c.zip
port to containers item_store() continued
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/import.php b/include/import.php
index 479c2c255..77d35a3e7 100644
--- a/include/import.php
+++ b/include/import.php
@@ -825,13 +825,13 @@ function import_items($channel, $items, $sync = false, $relocate = null) {
if($item['edited'] >= $r[0]['edited']) {
$item['id'] = $r[0]['id'];
$item['uid'] = $channel['channel_id'];
- $item_result = item_store_update($item,$allow_code,$deliver);
+ $item_result = item_store_update($item, $allow_code, $deliver, addAndSync: false);
}
}
else {
$item['aid'] = $channel['channel_account_id'];
$item['uid'] = $channel['channel_id'];
- $item_result = item_store($item,$allow_code,$deliver);
+ $item_result = item_store($item, $allow_code, $deliver, addAndSync: false);
}
// preserve conversations you've been involved in from being expired
@@ -1886,7 +1886,7 @@ function import_webpage_element($element, $channel, $type) {
$arr['id'] = $i[0]['id'];
// don't update if it has the same timestamp as the original
if($arr['edited'] > $i[0]['edited'])
- $x = item_store_update($arr,$execflag);
+ $x = item_store_update($arr, $execflag, deliver: false, addAndSync: false);
}
else {
if(($i) && (intval($i[0]['item_deleted']))) {
@@ -1897,7 +1897,7 @@ function import_webpage_element($element, $channel, $type) {
);
}
else
- $x = item_store($arr,$execflag);
+ $x = item_store($arr, $execflag, deliver: false, addAndSync: false);
}
if($x && $x['success']) {