mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-10 16:04:54 +01:00
refs #848 Fix validation which checks toot max length
This commit is contained in:
parent
deba87a586
commit
159ebf2ca8
@ -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
Block a user