This commit is contained in:
parent
886510d721
commit
f16cda51fb
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue