fix poast mentions tripping

This commit is contained in:
Henry Jameson 2022-02-03 22:23:28 +02:00
parent 06042569f1
commit 6d3229b1a1
1 changed files with 2 additions and 1 deletions

View File

@ -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