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 { canPost(): boolean {
return !this.posting && return !this.posting &&
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) && (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 { canPost(): boolean {
return !this.posting && return !this.posting &&
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) && (1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) &&
(this.text.length <= 1000); (this.text.trim().length <= 1000);
} }
}, },