aboutsummaryrefslogtreecommitdiff
path: root/src/components/rich_content/rich_content.jsx
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-04-20 20:23:34 +0300
committerHenry Jameson <me@hjkos.com>2022-04-20 20:23:34 +0300
commite388dbc168ae466e6745588df0498ee0036d6eb1 (patch)
treed33e8bea242b8f8a345e28b304236081806440f2 /src/components/rich_content/rich_content.jsx
parentbe8098e8ec41ffa909987ee5db990a8c349a9034 (diff)
parent895eda3714e9977d931a5e4a0f215c304df021af (diff)
Merge branch 'fix-chat-errors' into threecolumn
* fix-chat-errors: fix some chat errors/warnings that sometimes happen Fix incorrect close of a status popover when clicking Expand inside it fix tests fix hashtags by explicitly putting attributes
Diffstat (limited to 'src/components/rich_content/rich_content.jsx')
-rw-r--r--src/components/rich_content/rich_content.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx
index 41e287e4..ca075270 100644
--- a/src/components/rich_content/rich_content.jsx
+++ b/src/components/rich_content/rich_content.jsx
@@ -28,6 +28,10 @@ import './rich_content.scss'
*/
export default {
name: 'RichContent',
+ components: {
+ MentionsLine,
+ HashtagLink
+ },
props: {
// Original html content
html: {
@@ -86,7 +90,8 @@ export default {
if (!encounteredTextReverse) {
lastTags.push(linkData)
}
- return <HashtagLink { ...linkData }/>
+ const { url, tag, content } = linkData
+ return <HashtagLink url={url} tag={tag} content={content}/>
}
const renderMention = (attrs, children) => {