Skip to content

Commit

Permalink
Merge pull request #854 from h3poteto/iss-848
Browse files Browse the repository at this point in the history
closes #848 Fix validation which checks toot max length
  • Loading branch information
h3poteto committed Mar 20, 2019
2 parents deba87a + 159ebf2 commit e4b6798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/TimelineSpace/Modals/NewToot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
})
}
Expand Down

0 comments on commit e4b6798

Please sign in to comment.