diff options
author | zotlabs <mike@macgirvin.com> | 2018-11-15 16:02:29 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-11-15 16:02:29 -0800 |
commit | 8d2f4d9dfd90d218a68e0e36ccf537d800b09755 (patch) | |
tree | 12c33c7117baa91fd1265440a4f2cc9280d8136b /Zotlabs | |
parent | a7d2f9b53005f0c27ddfe1ef32fab78591c5374f (diff) | |
download | volse-hubzilla-8d2f4d9dfd90d218a68e0e36ccf537d800b09755.tar.gz volse-hubzilla-8d2f4d9dfd90d218a68e0e36ccf537d800b09755.tar.bz2 volse-hubzilla-8d2f4d9dfd90d218a68e0e36ccf537d800b09755.zip |
mid -> uuid conversions for basic reactions
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Like.php | 6 | ||||
-rw-r--r-- | Zotlabs/Module/React.php | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php index 4e216f08b..c39726b88 100644 --- a/Zotlabs/Module/Like.php +++ b/Zotlabs/Module/Like.php @@ -371,10 +371,13 @@ class Like extends \Zotlabs\Web\Controller { } } - $mid = item_message_id(); + $uuid = item_message_id(); $arr = array(); + $arr['uuid'] = $uuid; + $arr['mid'] = z_root() . '/item/' . $uuid; + if($extended_like) { $arr['item_thread_top'] = 1; $arr['item_origin'] = 1; @@ -476,7 +479,6 @@ class Like extends \Zotlabs\Web\Controller { } - $arr['mid'] = $mid; $arr['aid'] = (($extended_like) ? $ch[0]['channel_account_id'] : $owner_aid); $arr['uid'] = $owner_uid; diff --git a/Zotlabs/Module/React.php b/Zotlabs/Module/React.php index fbb760786..3920301f5 100644 --- a/Zotlabs/Module/React.php +++ b/Zotlabs/Module/React.php @@ -44,6 +44,7 @@ class React extends \Zotlabs\Web\Controller { return; } + $uuid = item_message_id(); $n = array(); $n['aid'] = $channel['channel_account_id']; @@ -52,7 +53,8 @@ class React extends \Zotlabs\Web\Controller { $n['item_type'] = $i[0]['item_type']; $n['parent'] = $postid; $n['parent_mid'] = $i[0]['mid']; - $n['mid'] = item_message_id(); + $n['uuid'] = $uuid; + $n['mid'] = z_root() . '/item/' . $uuid; $n['verb'] = ACTIVITY_REACT . '#' . $emoji; $n['body'] = "\n\n[zmg=32x32]" . z_root() . '/images/emoji/' . $emoji . '.png[/zmg]' . "\n\n"; $n['author_xchan'] = $channel['channel_hash']; |