fix: do not overwrite status drafts (#1822)

zio/stable
Zaidhaan 2023-02-25 06:34:17 +08:00 committed by GitHub
parent 8c783204d3
commit d810b2de3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -129,14 +129,14 @@ export function useDraft(
export function mentionUser(account: mastodon.v1.Account) { export function mentionUser(account: mastodon.v1.Account) {
openPublishDialog('dialog', getDefaultDraft({ openPublishDialog('dialog', getDefaultDraft({
status: `@${account.acct} `, status: `@${account.acct} `,
}), true) }))
} }
export function directMessageUser(account: mastodon.v1.Account) { export function directMessageUser(account: mastodon.v1.Account) {
openPublishDialog('dialog', getDefaultDraft({ openPublishDialog('dialog', getDefaultDraft({
status: `@${account.acct} `, status: `@${account.acct} `,
visibility: 'direct', visibility: 'direct',
}), true) }))
} }
export function clearEmptyDrafts() { export function clearEmptyDrafts() {