summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-08-10 16:06:14 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-08-10 16:06:14 +0900
commite19cc8bebfdc4a4de9a0456c063612eaa9c88a34 (patch)
tree4133d69e008326794d5a62ff8172117178c97c25 /src
parent:art: (diff)
downloadsharkey-e19cc8bebfdc4a4de9a0456c063612eaa9c88a34.tar.gz
sharkey-e19cc8bebfdc4a4de9a0456c063612eaa9c88a34.tar.bz2
sharkey-e19cc8bebfdc4a4de9a0456c063612eaa9c88a34.zip
ハッシュタグ入力が空のときに#が付くのを修正
Diffstat (limited to 'src')
-rw-r--r--src/client/components/post-form.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue
index 82d28f30e8..f2c625a556 100644
--- a/src/client/components/post-form.vue
+++ b/src/client/components/post-form.vue
@@ -615,7 +615,7 @@ export default defineComponent({
viaMobile: isMobile
};
- if (this.withHashtags) {
+ if (this.withHashtags && this.hashtags && this.hashtags.trim() !== '') {
const hashtags = this.hashtags.trim().split(' ').map(x => x.startsWith('#') ? x : '#' + x).join(' ');
data.text = data.text ? `${data.text} ${hashtags}` : hashtags;
}