logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 6d3229b1a10a6547d5c0ebcf47a65f03a0f9c690
parent 06042569f1d2f2c7217917459df007adbb113e53
Author: Henry Jameson <me@hjkos.com>
Date:   Thu,  3 Feb 2022 22:23:28 +0200

fix poast mentions tripping

Diffstat:

Msrc/components/rich_content/rich_content.jsx3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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