Compare commits

..

1 Commits

Author SHA1 Message Date
grnd-alt
2ee3d8d7d3 fix: comments with mentions cant be submitted
Signed-off-by: grnd-alt <github@belakkaf.net>
2025-10-06 16:18:36 +00:00
2 changed files with 5 additions and 5 deletions

8
composer.lock generated
View File

@@ -380,12 +380,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nextcloud-deps/ocp.git", "url": "https://github.com/nextcloud-deps/ocp.git",
"reference": "251d379ae2c80830880d49e1070926f89bc48669" "reference": "5f0db0fc0e5f09a4c8ac06ebc5dedefd21d53603"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/251d379ae2c80830880d49e1070926f89bc48669", "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/5f0db0fc0e5f09a4c8ac06ebc5dedefd21d53603",
"reference": "251d379ae2c80830880d49e1070926f89bc48669", "reference": "5f0db0fc0e5f09a4c8ac06ebc5dedefd21d53603",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -420,7 +420,7 @@
"issues": "https://github.com/nextcloud-deps/ocp/issues", "issues": "https://github.com/nextcloud-deps/ocp/issues",
"source": "https://github.com/nextcloud-deps/ocp/tree/stable32" "source": "https://github.com/nextcloud-deps/ocp/tree/stable32"
}, },
"time": "2025-10-03T00:46:18+00:00" "time": "2025-09-10T00:46:52+00:00"
}, },
{ {
"name": "nikic/php-parser", "name": "nikic/php-parser",

View File

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