aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-06-12 17:20:21 +0300
committerHenry Jameson <me@hjkos.com>2021-06-12 17:20:21 +0300
commitca6c7d5b10e48299dcb0ee65248de14f27ed78c8 (patch)
treefc96ffc9d084b5f2327a748eb66bd9abea712f01 /src
parent24f3681ac157594c94e3b933aa85bc4707758746 (diff)
fix tags gluing
Diffstat (limited to 'src')
-rw-r--r--src/components/rich_content/rich_content.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx
index a489689b..ad77d615 100644
--- a/src/components/rich_content/rich_content.jsx
+++ b/src/components/rich_content/rich_content.jsx
@@ -141,6 +141,7 @@ export default Vue.component('RichContent', {
if (attrs['class'] && attrs['class'].includes('mention')) {
return renderMention(attrs, children, encounteredText)
} else if (attrs['class'] && attrs['class'].includes('hashtag')) {
+ encounteredText = true
return item // We'll handle it later
} else {
attrs.target = '_blank'
@@ -167,7 +168,7 @@ export default Vue.component('RichContent', {
// Handle text nodes - just add emoji
if (typeof item === 'string') {
const emptyText = item.trim() === ''
- if (emptyText) return encounteredTextReverse ? item : item.trim()
+ if (emptyText) return item
if (!encounteredTextReverse) encounteredTextReverse = true
return item
} else if (Array.isArray(item)) {