1
0
Fork 1
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:
TAKAHASHI Shuuji 2024-03-01 03:35:20 +09:00
parent 9fabaad1ec
commit 65d9e37b95
No known key found for this signature in database
GPG key ID: F15C887632129F5E

View file

@ -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,