Merge pull request #854 from h3poteto/iss-848

closes #848 Fix validation which checks toot max length
This commit is contained in:
AkiraFukushima 2019-03-20 22:09:25 +09:00 committed by GitHub
commit e4b679822b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'
})
}