fix hashtags by explicitly putting attributes

This commit is contained in:
Henry Jameson 2022-04-12 18:10:19 +03:00
parent c2a4051d72
commit d175e86901

View File

@ -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) => {