fix: better post-posting handling

This commit is contained in:
kakkokari-gtyih 2025-06-07 16:43:57 +09:00
parent 6e3494a389
commit 46915d2ae3
1 changed files with 1 additions and 0 deletions

View File

@ -1043,6 +1043,7 @@ async function post(ev?: MouseEvent) {
nextTick(() => { nextTick(() => {
deleteDraft(); deleteDraft();
attachOrder.clear();
emit('posted'); emit('posted');
if (postData.text && postData.text !== '') { if (postData.text && postData.text !== '') {
const hashtags_ = mfm.parse(postData.text).map(x => x.type === 'hashtag' && x.props.hashtag).filter(x => x) as string[]; const hashtags_ = mfm.parse(postData.text).map(x => x.type === 'hashtag' && x.props.hashtag).filter(x => x) as string[];