diff options
author | Vitaly Takmazov | 2018-06-20 17:57:33 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 17972c0bf27c9b80836dbe663d8f50b7aab01c92 (patch) | |
tree | bf599205f806a0564d7527be8409b64554f19c3c /vnext/src/components/Message.js | |
parent | 7b763f412e358eb75ade1d0a7d466fe8d367f76d (diff) |
push message to thread state
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r-- | vnext/src/components/Message.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js index 8e060aa8..e9d3eebd 100644 --- a/vnext/src/components/Message.js +++ b/vnext/src/components/Message.js @@ -22,7 +22,7 @@ export default function Message(props) { </span> <Avatar user={msg.user} /> <div className="msg-ts"> - <Link to={{ pathname: `/${msg.user.uname}/${msg.mid}` }}> + <Link to={{ pathname: `/${msg.user.uname}/${msg.mid}`, state: {msg: msg} }}> <time itemProp="datePublished dateModified" itemType="http://schema.org/Date" dateTime={msg.timestamp} title={moment.utc(msg.timestamp).local().format('lll')}> {moment.utc(msg.timestamp).fromNow()} @@ -69,7 +69,7 @@ export default function Message(props) { )} {!Boolean(msg.ReadOnly) | (visitor.uid === msg.user.uid) && ( <React.Fragment> - <Link to={{ pathname: `/${msg.user.uname}/${msg.mid}` }} className="a-comment msg-button"> + <Link to={{ pathname: `/${msg.user.uname}/${msg.mid}`, state: {msg: msg} }} className="a-comment msg-button"> <span className="msg-button-icon"> <Icon name="ei-comment" size="s" /> {msg.replies > 0 && |