mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 01:33:09 +02:00
ハッシュタグ入力が空のときに#が付くのを修正
This commit is contained in:
parent
f4f8debb92
commit
e19cc8bebf
1 changed files with 1 additions and 1 deletions
|
@ -615,7 +615,7 @@ export default defineComponent({
|
||||||
viaMobile: isMobile
|
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(' ');
|
const hashtags = this.hashtags.trim().split(' ').map(x => x.startsWith('#') ? x : '#' + x).join(' ');
|
||||||
data.text = data.text ? `${data.text} ${hashtags}` : hashtags;
|
data.text = data.text ? `${data.text} ${hashtags}` : hashtags;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue