aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-02-07 11:18:34 -0800
committerzotlabs <mike@macgirvin.com>2019-02-07 11:18:34 -0800
commitbeb26e84f3698106bd145ff21a7477e1775397dd (patch)
treef92050f1fe5b7f1d0ccd173689ef8b42bb2d4a24 /Zotlabs
parent7f6e4a9744b7b5293e1f0d25db8bb3ad17cd256d (diff)
downloadvolse-hubzilla-beb26e84f3698106bd145ff21a7477e1775397dd.tar.gz
volse-hubzilla-beb26e84f3698106bd145ff21a7477e1775397dd.tar.bz2
volse-hubzilla-beb26e84f3698106bd145ff21a7477e1775397dd.zip
fix mid generation for shares
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Share.php b/Zotlabs/Module/Share.php
index 58b70318d..dcb2343ce 100644
--- a/Zotlabs/Module/Share.php
+++ b/Zotlabs/Module/Share.php
@@ -94,8 +94,8 @@ class Share extends \Zotlabs\Web\Controller {
$arr['item_origin'] = 1;
$arr['item_wall'] = $item['item_wall'];
- $arr['mid'] = item_message_id();
- $arr['mid'] = str_replace('/item/','/activity/',$arr['mid']);
+ $arr['uuid'] = item_message_id();
+ $arr['mid'] = z_root() . '/activity/' . $arr['uuid'];
$arr['parent_mid'] = $item['mid'];
$mention = '@[zrl=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/zrl]';