fix(status): add language from status when redraft
This commit is contained in:
parent
8983edd1bb
commit
154885ca96
2 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@ export function getDefaultDraft(options: Partial<Draft['params'] & Omit<Draft, '
|
|||
initialText = '',
|
||||
sensitive = false,
|
||||
spoilerText = '',
|
||||
language,
|
||||
} = options
|
||||
|
||||
return {
|
||||
|
@ -22,6 +23,7 @@ export function getDefaultDraft(options: Partial<Draft['params'] & Omit<Draft, '
|
|||
visibility,
|
||||
sensitive,
|
||||
spoilerText,
|
||||
language,
|
||||
},
|
||||
attachments,
|
||||
initialText,
|
||||
|
@ -36,6 +38,7 @@ export async function getDraftFromStatus(status: Status): Promise<Draft> {
|
|||
attachments: status.mediaAttachments,
|
||||
sensitive: status.sensitive,
|
||||
spoilerText: status.spoilerText,
|
||||
language: status.language,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue