Merge pull request #854 from h3poteto/iss-848
closes #848 Fix validation which checks toot max length
This commit is contained in:
commit
e4b679822b
|
@ -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'
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue