diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-11-16 10:11:46 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-11-16 10:11:46 +0100 |
commit | c69556f2ff9845b9ac1bce89be2431a7ac6d3fd7 (patch) | |
tree | fe411c26c6a7fea7b6d2b54449ec84d0dbe51033 /include/event.php | |
parent | ca4e7f9b4fab7035e511582a0755d58e9e4fa2f0 (diff) | |
parent | b0689614bff4272f90b0c3f064ca91b16cb392e0 (diff) | |
download | volse-hubzilla-c69556f2ff9845b9ac1bce89be2431a7ac6d3fd7.tar.gz volse-hubzilla-c69556f2ff9845b9ac1bce89be2431a7ac6d3fd7.tar.bz2 volse-hubzilla-c69556f2ff9845b9ac1bce89be2431a7ac6d3fd7.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/event.php')
-rw-r--r-- | include/event.php | 7 |
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']; |