diff --git a/composables/content-parse.ts b/composables/content-parse.ts index 7f6745ba..d591d9cf 100644 --- a/composables/content-parse.ts +++ b/composables/content-parse.ts @@ -568,6 +568,11 @@ function transformCollapseMentions(status?: mastodon.v1.Status, inReplyToStatus? if (child.type === TEXT_NODE) { trimContentStart = () => { child.value = child.value.trimStart() + // remove the comma after the collapsed mention. + if (child.value.at(0) === ',') { + child.value = child.value.slice(1) + child.value = child.value.trimStart() + } } } // remove
after mention