From 159ebf2ca8200bacf65cb068d57c57d952d9395b Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Wed, 20 Mar 2019 22:05:04 +0900
Subject: [PATCH] refs #848 Fix validation which checks toot max length
---
src/renderer/components/TimelineSpace/Modals/NewToot.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/renderer/components/TimelineSpace/Modals/NewToot.vue b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
index 585842b0..bb40cc14 100644
--- a/src/renderer/components/TimelineSpace/Modals/NewToot.vue
+++ b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
@@ -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'
})
}