diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-07-23 14:07:09 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-07-23 14:07:09 +0900 |
| commit | f16cda51fb71efe723b013de9798ea634af8b052 (patch) | |
| tree | 903231912d7c185ed985ee92cc8566fde153f958 /src/client | |
| parent | Clean up (diff) | |
| download | sharkey-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.vue | 2 | ||||
| -rw-r--r-- | src/client/app/mobile/views/components/post-form.vue | 2 |
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); } }, |