This commit is contained in:
Aya Morisawa 2018-07-23 14:07:09 +09:00
parent 9af3a99eed
commit 702e63e2ae
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ export default Vue.extend({
canPost(): boolean {
return !this.posting &&
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) &&
(this.text.length <= 1000);
(this.text.trim().length <= 1000);
}
},

View File

@ -134,7 +134,7 @@ export default Vue.extend({
canPost(): boolean {
return !this.posting &&
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) &&
(this.text.length <= 1000);
(this.text.trim().length <= 1000);
}
},