fix: comments with mentions cant be submitted

Signed-off-by: grnd-alt <github@belakkaf.net>
This commit is contained in:
grnd-alt
2025-10-06 16:33:11 +02:00
committed by backportbot[bot]
parent 0802911d13
commit 2ee3d8d7d3

View File

@@ -125,7 +125,7 @@ export default {
if (mention.attributes['data-at-embedded'].value === 'true') {
mentionValue = mention.parentNode.parentNode.querySelector('.user-bubble__wrapper').attributes['data-mention-id'].value
} else {
mentionValue = mention.firstChild.attributes['data-mention-id'].value
mentionValue = mention.firstElementChild.attributes['data-mention-id'].value
}
if (mentionValue.indexOf(' ') !== -1) {
mention.replaceWith(' @"' + mentionValue + '" ')