aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-26 16:12:31 -0700
committerredmatrix <git@macgirvin.com>2016-04-26 16:12:31 -0700
commitf99daf8ff9b3cd9c0ad61f9fcfec04c6c4042a59 (patch)
treeb03a1659f3811475b5342f5c6aa56ffcca14f77b /include/import.php
parente508ad37c15a5c3c10bf0e6c117fe24859892acf (diff)
downloadvolse-hubzilla-f99daf8ff9b3cd9c0ad61f9fcfec04c6c4042a59.tar.gz
volse-hubzilla-f99daf8ff9b3cd9c0ad61f9fcfec04c6c4042a59.tar.bz2
volse-hubzilla-f99daf8ff9b3cd9c0ad61f9fcfec04c6c4042a59.zip
move iconfig functions to include/config.php with all the rest of the configs, fix an issue with singleton discovery and start work on singleton delivery
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/import.php b/include/import.php
index 3b5c8508c..ae7f417af 100644
--- a/include/import.php
+++ b/include/import.php
@@ -482,7 +482,7 @@ function sync_chatrooms($channel,$chatrooms) {
-function import_items($channel,$items) {
+function import_items($channel,$items,$sync = false) {
if($channel && $items) {
$allow_code = false;
@@ -520,13 +520,16 @@ function import_items($channel,$items) {
$item['uid'] = $channel['channel_id'];
$item_result = item_store($item,$allow_code,$deliver);
}
+ if($sync) {
+ // deliver singletons if we have any
+ }
}
}
}
function sync_items($channel,$items) {
- import_items($channel,$items);
+ import_items($channel,$items,true);
}