merge: Count CW text in the character limit (resolves #724) (!667)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/667

Closes #724

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
Marie 2024-10-08 09:08:37 +00:00
commit 80c3acf731

View File

@ -247,7 +247,7 @@ const submitText = computed((): string => {
}); });
const textLength = computed((): number => { const textLength = computed((): number => {
return (text.value + imeText.value).trim().length; return (text.value + imeText.value).trim().length + (cw.value?.trim().length ?? 0);
}); });
const maxTextLength = computed((): number => { const maxTextLength = computed((): number => {