kopia lustrzana https://github.com/elk-zone/elk
feat: convert datetime string into ISO 8601 datetime string
ref. statuses API methods - Mastodon documentation - https://docs.joinmastodon.org/methods/statuses/#form-data-parametersshuuji3/feat/scheduled-post
rodzic
4a0345a059
commit
9fabaad1ec
|
@ -86,6 +86,10 @@ export function usePublish(options: {
|
|||
poll = { ...draftItem.value.params.poll, options }
|
||||
}
|
||||
|
||||
if (draft.value.params.scheduledAt)
|
||||
// TODO: return type become non `Status` object now! what to do?
|
||||
draft.value.params.scheduledAt = new Date(draft.value.params.scheduledAt).toISOString()
|
||||
|
||||
const payload = {
|
||||
...draftItem.value.params,
|
||||
spoilerText: publishSpoilerText.value,
|
||||
|
|
Ładowanie…
Reference in New Issue