From beb26e84f3698106bd145ff21a7477e1775397dd Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 7 Feb 2019 11:18:34 -0800 Subject: fix mid generation for shares --- Zotlabs/Module/Share.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Module') 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]'; -- cgit v1.2.3