aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Impel.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 /Zotlabs/Module/Impel.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 'Zotlabs/Module/Impel.php')
-rw-r--r--Zotlabs/Module/Impel.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/Zotlabs/Module/Impel.php b/Zotlabs/Module/Impel.php
index 0c372bd96..e05027d9f 100644
--- a/Zotlabs/Module/Impel.php
+++ b/Zotlabs/Module/Impel.php
@@ -133,9 +133,11 @@ class Impel extends \Zotlabs\Web\Controller {
$arr['author_xchan'] = (($j['author_xchan']) ? $j['author_xchan'] : get_observer_hash());
$arr['mimetype'] = (($j['mimetype']) ? $j['mimetype'] : 'text/bbcode');
- if(! $j['mid'])
- $j['mid'] = item_message_id();
-
+ if(! $j['mid']) {
+ $j['uuid'] = item_message_id();
+ $j['mid'] = z_root() . '/item/' . $j['uuid'];
+ }
+ $arr['uuid'] = $j['uuid'];
$arr['mid'] = $arr['parent_mid'] = $j['mid'];