From 2ee3d8d7d353226a3ba1c71fd2bd7920b5f378ef Mon Sep 17 00:00:00 2001 From: grnd-alt Date: Mon, 6 Oct 2025 16:33:11 +0200 Subject: [PATCH] fix: comments with mentions cant be submitted Signed-off-by: grnd-alt --- src/components/card/CommentForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/card/CommentForm.vue b/src/components/card/CommentForm.vue index 8f73a721d..5b6837b9e 100644 --- a/src/components/card/CommentForm.vue +++ b/src/components/card/CommentForm.vue @@ -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 + '" ')