aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-11-15 16:34:09 -0800
committerzotlabs <mike@macgirvin.com>2018-11-15 16:34:09 -0800
commit39d914c9dfe87021351cb2aad9feedd381e791ec (patch)
treef13c34440bc702085f7d7031a7d14ebb5e006285 /include/import.php
parent8d2f4d9dfd90d218a68e0e36ccf537d800b09755 (diff)
downloadvolse-hubzilla-39d914c9dfe87021351cb2aad9feedd381e791ec.tar.gz
volse-hubzilla-39d914c9dfe87021351cb2aad9feedd381e791ec.tar.bz2
volse-hubzilla-39d914c9dfe87021351cb2aad9feedd381e791ec.zip
add item.uuid to relevant places
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/import.php b/include/import.php
index 6476aa688..53b21c317 100644
--- a/include/import.php
+++ b/include/import.php
@@ -1520,7 +1520,8 @@ function import_webpage_element($element, $channel, $type) {
}
else { // otherwise, generate the creation times and unique id
$arr['created'] = datetime_convert('UTC', 'UTC');
- $arr['mid'] = $arr['parent_mid'] = item_message_id();
+ $arr['uuid'] = item_message_id();
+ $arr['mid'] = $arr['parent_mid'] = z_root() . '/item/' . $arr['uuid'];
}
// Update the edited time whether or not the element already exists
$arr['edited'] = datetime_convert('UTC', 'UTC');