aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.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/event.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/event.php')
-rw-r--r--include/event.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/event.php b/include/event.php
index 84a16e8be..a34250e7a 100644
--- a/include/event.php
+++ b/include/event.php
@@ -1125,11 +1125,14 @@ function event_store_item($arr, $event) {
}
}
- if(! $arr['mid'])
- $arr['mid'] = item_message_id();
+ if(! $arr['mid']) {
+ $arr['uuid'] = item_message_id();
+ $arr['mid'] = z_root() . '/item/' . $arr['uuid'];
+ }
$item_arr['aid'] = $z[0]['channel_account_id'];
$item_arr['uid'] = $arr['uid'];
+ $item_arr['uuid'] = $arr['uuid'];
$item_arr['author_xchan'] = $arr['event_xchan'];
$item_arr['mid'] = $arr['mid'];
$item_arr['parent_mid'] = $arr['mid'];