kopia lustrzana https://github.com/elk-zone/elk
fix: check if actual response is `ScheduledStatus` since Mastodon API could post and return `Status` even if specified `scheduled_at` in request
rodzic
8176ec9d47
commit
ae30d9e8be
|
@ -130,7 +130,7 @@ export function usePublish(options: {
|
|||
|
||||
draft.value = options.initialDraft.value()
|
||||
|
||||
if (scheduledAt)
|
||||
if ('scheduled_at' in status)
|
||||
// When created a scheduled post, it returns `mastodon.v1.ScheduledStatus` instead
|
||||
// We want to return only Status, which will be used to route to the posted status page
|
||||
// ref. Mastodon documentation - https://docs.joinmastodon.org/methods/statuses/#create
|
||||
|
|
Ładowanie…
Reference in New Issue