mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-15 13:30:05 +00:00
feat: support scheduledAt
param in getDefaultDraft()
function
This commit is contained in:
parent
9fabaad1ec
commit
65d9e37b95
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