diff options
author | mrjive <mrjive@mrjive.it> | 2016-01-21 09:51:32 +0100 |
---|---|---|
committer | mrjive <mrjive@mrjive.it> | 2016-01-21 09:51:32 +0100 |
commit | c49e4f52ae83441c4a1dcf52e433dded8d767679 (patch) | |
tree | 0a558e33ed4b77a56186721cf13844ba7b28af24 /include/import.php | |
parent | 763c700372ee91f3f840c6fba915cb4d941c34a0 (diff) | |
parent | 1d891984441fa2f4aa8e311191da23e9ddd6e928 (diff) | |
download | volse-hubzilla-c49e4f52ae83441c4a1dcf52e433dded8d767679.tar.gz volse-hubzilla-c49e4f52ae83441c4a1dcf52e433dded8d767679.tar.bz2 volse-hubzilla-c49e4f52ae83441c4a1dcf52e433dded8d767679.zip |
Merge pull request #18 from redmatrix/master
updating from original codebase
Diffstat (limited to 'include/import.php')
-rw-r--r-- | include/import.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/import.php b/include/import.php index ffaea6c1a..e208c3b00 100644 --- a/include/import.php +++ b/include/import.php @@ -496,6 +496,8 @@ function import_items($channel,$items) { } } + $deliver = false; // Don't deliver any messages or notifications when importing + foreach($items as $i) { $item = get_item_elements($i,$allow_code); if(! $item) @@ -509,16 +511,15 @@ function import_items($channel,$items) { if($item['edited'] > $r[0]['edited']) { $item['id'] = $r[0]['id']; $item['uid'] = $channel['channel_id']; - item_store_update($item); + item_store_update($item,$allow_code,$deliver); continue; } } else { $item['aid'] = $channel['channel_account_id']; $item['uid'] = $channel['channel_id']; - $item_result = item_store($item); + $item_result = item_store($item,$allow_code,$deliver); } - } } } |