Skip to content

Commit

Permalink
merge: Count CW text in the character limit (resolves misskey-dev#724)…
Browse files Browse the repository at this point in the history
… (!667)

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

Closes misskey-dev#724

Approved-by: dakkar <[email protected]>
Approved-by: Marie <[email protected]>
  • Loading branch information
Mar0xy committed Oct 8, 2024
2 parents a90b4d4 + eb5a2b0 commit 80c3acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkPostForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const submitText = computed((): string => {
});

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 => {
Expand Down

0 comments on commit 80c3acf

Please sign in to comment.