This commit is contained in:
Aya Morisawa 2018-07-23 14:07:09 +09:00
parent 886510d721
commit f16cda51fb
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);
}
},