refs #848 Fix validation which checks toot max length

This commit is contained in:
AkiraFukushima 2019-03-20 22:05:04 +09:00
parent deba87a586
commit 159ebf2ca8
1 changed files with 2 additions and 2 deletions

View File

@ -189,9 +189,9 @@ export default {
if (!this.newTootModal) {
return
}
if (this.status.length <= 0 || this.status.length >= 500) {
if (this.status.length < 1 || this.status.length > this.tootMax) {
return this.$message({
message: this.$t('validation.new_toot.toot_length', { min: 1, max: 500 }),
message: this.$t('validation.new_toot.toot_length', { min: 1, max: this.tootMax }),
type: 'error'
})
}