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,
|
language,
|
||||||
mentions,
|
mentions,
|
||||||
poll,
|
poll,
|
||||||
|
scheduledAt,
|
||||||
} = options
|
} = options
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -45,6 +46,7 @@ export function getDefaultDraftItem(options: Partial<Mutable<mastodon.rest.v1.Cr
|
||||||
params: {
|
params: {
|
||||||
status: status || '',
|
status: status || '',
|
||||||
poll,
|
poll,
|
||||||
|
scheduledAt,
|
||||||
inReplyToId,
|
inReplyToId,
|
||||||
visibility: getDefaultVisibility(visibility || 'public'),
|
visibility: getDefaultVisibility(visibility || 'public'),
|
||||||
sensitive: sensitive ?? false,
|
sensitive: sensitive ?? false,
|
||||||
|
|
Loading…
Reference in a new issue