From e19cc8bebfdc4a4de9a0456c063612eaa9c88a34 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Tue, 10 Aug 2021 16:06:14 +0900
Subject: [PATCH] =?UTF-8?q?=E3=83=8F=E3=83=83=E3=82=B7=E3=83=A5=E3=82=BF?=
 =?UTF-8?q?=E3=82=B0=E5=85=A5=E5=8A=9B=E3=81=8C=E7=A9=BA=E3=81=AE=E3=81=A8?=
 =?UTF-8?q?=E3=81=8D=E3=81=AB#=E3=81=8C=E4=BB=98=E3=81=8F=E3=81=AE?=
 =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/client/components/post-form.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 			}
-- 
GitLab