mid -> uuid conversions for basic reactions

This commit is contained in:
zotlabs
2018-11-15 16:02:29 -08:00
parent a7d2f9b530
commit 8d2f4d9dfd
2 changed files with 7 additions and 3 deletions

View File

@@ -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'];