mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-09 10:13:42 +00:00
fix hashtags by explicitly putting attributes
This commit is contained in:
parent
c2a4051d72
commit
d175e86901
1 changed files with 6 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue