From 8621714ab4bcf04db1e4a51dd7305a6ae83b1849 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 6a0f47b39..e9ce7e7c0 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 + '" ')