aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-02-03 22:23:28 +0200
committerHenry Jameson <me@hjkos.com>2022-02-03 22:23:28 +0200
commit6d3229b1a10a6547d5c0ebcf47a65f03a0f9c690 (patch)
tree96faf674cf4786199ce2adb3739a814ca173175a /src
parent06042569f1d2f2c7217917459df007adbb113e53 (diff)
fix poast mentions tripping
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 c0d20c5e..46bc661a 100644
--- a/src/components/rich_content/rich_content.jsx
+++ b/src/components/rich_content/rich_content.jsx
@@ -120,7 +120,8 @@ export default Vue.component('RichContent', {
// don't include spaces when processing mentions - we'll include them
// in MentionsLine
lastSpacing = item
- return currentMentions !== null ? item.trim() : item
+ // Don't remove last space in a container (fixes poast mentions)
+ return (index !== array.length - 1) && (currentMentions !== null) ? item.trim() : item
}
currentMentions = null