fix: character count should includes spoiler text (#1535)

* fix: character count should includes spoiler text

* fix: draft empty conditions exclude spoiler text
This commit is contained in:
Alex Liu 2023-02-06 01:36:33 +08:00 committed by GitHub
parent 04c4ff5225
commit 2bd8dc2dd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 3 deletions

View file

@ -89,7 +89,6 @@ export const isEmptyDraft = (draft: Draft | null | undefined) => {
return (text.length === 0)
&& attachments.length === 0
&& (params.spoilerText || '').length === 0
}
export interface UseDraft {