Skip to content
Snippets Groups Projects
Commit e19cc8be authored by syuilo's avatar syuilo
Browse files

ハッシュタグ入力が空のときに#が付くのを修正

parent f4f8debb
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment