diff --git a/composables/masto/publish.ts b/composables/masto/publish.ts index 8c0b22f9..3d611a79 100644 --- a/composables/masto/publish.ts +++ b/composables/masto/publish.ts @@ -134,7 +134,7 @@ export function usePublish(options: { draftItem.value = options.initialDraft() - 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