diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index 5ae44edda..278c98dc9 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -137,7 +137,9 @@ export default Vue.extend({ }, canPost(): boolean { - return !this.posting && (this.text.length != 0 || this.files.length != 0 || this.poll || this.renote); + return !this.posting && + (1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) && + (this.text.length <= 1000); } }, @@ -307,8 +309,8 @@ export default Vue.extend({ }, err => { alert('エラー: ' + err.message); }, { - enableHighAccuracy: true - }); + enableHighAccuracy: true + }); }, removeGeo() { diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index c558178cb..f7b298898 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -132,7 +132,9 @@ export default Vue.extend({ }, canPost(): boolean { - return !this.posting && (this.text.length != 0 || this.files.length != 0 || this.poll || this.renote); + return !this.posting && + (1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) && + (this.text.length <= 1000); } }, @@ -221,8 +223,8 @@ export default Vue.extend({ }, err => { alert('%i18n:@error%: ' + err.message); }, { - enableHighAccuracy: true - }); + enableHighAccuracy: true + }); }, removeGeo() {