diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2024-04-07 21:16:37 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-07 21:16:37 +0900 |
| commit | 960c4df48e31483209ac0421a009686685acd82d (patch) | |
| tree | 55f3ebd301b577bf1e09835440952d99e6df3b0a /packages/frontend/src/components/MkPostForm.vue | |
| parent | refactor(general): use `Date.now()` instead of creating a new `Date` instance... (diff) | |
| download | misskey-960c4df48e31483209ac0421a009686685acd82d.tar.gz misskey-960c4df48e31483209ac0421a009686685acd82d.tar.bz2 misskey-960c4df48e31483209ac0421a009686685acd82d.zip | |
enhance(frontend): better condition for posting and displaying Notes (#13670)
* enhance(frontend): better condition for posting and displaying Notes
* Update CHANGELOG.md
Diffstat (limited to 'packages/frontend/src/components/MkPostForm.vue')
| -rw-r--r-- | packages/frontend/src/components/MkPostForm.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index e03faeaf55..014b866fbd 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -253,7 +253,13 @@ const maxTextLength = computed((): number => { const canPost = computed((): boolean => { return !props.mock && !posting.value && !posted.value && - (1 <= textLength.value || 1 <= files.value.length || !!poll.value || !!props.renote) && + ( + 1 <= textLength.value || + 1 <= files.value.length || + poll.value != null || + props.renote != null || + (props.reply != null && quoteId.value != null) + ) && (textLength.value <= maxTextLength.value) && (!poll.value || poll.value.choices.length >= 2); }); |