summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-23 14:07:09 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-23 14:07:09 +0900
commitf16cda51fb71efe723b013de9798ea634af8b052 (patch)
tree903231912d7c185ed985ee92cc8566fde153f958 /src/client
parentClean up (diff)
downloadsharkey-f16cda51fb71efe723b013de9798ea634af8b052.tar.gz
sharkey-f16cda51fb71efe723b013de9798ea634af8b052.tar.bz2
sharkey-f16cda51fb71efe723b013de9798ea634af8b052.zip
#1957
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/desktop/views/components/post-form.vue2
-rw-r--r--src/client/app/mobile/views/components/post-form.vue2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue
index 278c98dc9a..1ce40e60f7 100644
--- a/src/client/app/desktop/views/components/post-form.vue
+++ b/src/client/app/desktop/views/components/post-form.vue
@@ -139,7 +139,7 @@ export default Vue.extend({
canPost(): boolean {
return !this.posting &&
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) &&
- (this.text.length <= 1000);
+ (this.text.trim().length <= 1000);
}
},
diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue
index f7b2988982..285b2e9660 100644
--- a/src/client/app/mobile/views/components/post-form.vue
+++ b/src/client/app/mobile/views/components/post-form.vue
@@ -134,7 +134,7 @@ export default Vue.extend({
canPost(): boolean {
return !this.posting &&
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) &&
- (this.text.length <= 1000);
+ (this.text.trim().length <= 1000);
}
},