feat: support scheduledAt param in getDefaultDraft() function
This commit is contained in:
parent
2ed5af94c9
commit
9cdfc1602e
1 changed files with 2 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ export function getDefaultDraftItem(options: Partial<Mutable<mastodon.rest.v1.Cr
|
|||
language,
|
||||
mentions,
|
||||
poll,
|
||||
scheduledAt,
|
||||
} = options
|
||||
|
||||
return {
|
||||
|
|
@ -45,6 +46,7 @@ export function getDefaultDraftItem(options: Partial<Mutable<mastodon.rest.v1.Cr
|
|||
params: {
|
||||
status: status || '',
|
||||
poll,
|
||||
scheduledAt,
|
||||
inReplyToId,
|
||||
visibility: getDefaultVisibility(visibility || 'public'),
|
||||
sensitive: sensitive ?? false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue