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 { export default {
name: 'RichContent', name: 'RichContent',
components: {
MentionsLine,
HashtagLink
},
props: { props: {
// Original html content // Original html content
html: { html: {
@ -86,7 +90,8 @@ export default {
if (!encounteredTextReverse) { if (!encounteredTextReverse) {
lastTags.push(linkData) lastTags.push(linkData)
} }
return <HashtagLink { ...linkData }/> const { url, tag, content } = linkData
return <HashtagLink url={url} tag={tag} content={content}/>
} }
const renderMention = (attrs, children) => { const renderMention = (attrs, children) => {