also looking at this
Long-form composer mode for the blog target
#10
7 files
+33
-8
| @@ -30,6 +30,8 @@ export interface QueueItemView { | ||
| 30 | 30 | export interface SaveQueueInput { |
| 31 | 31 | text: string |
| 32 | 32 | providers: SocialProvider[] |
| 33 | /** Explicit title for long-form targets (blog). */ | |
| 34 | title?: string | null | |
| 33 | 35 | /** UTC `YYYY-MM-DD HH:MM:SS`; omitted → saved as a draft. */ |
| 34 | 36 | scheduledAt?: string | null |
| 35 | 37 | } |
| @@ -67,7 +69,7 @@ export class QueueService { | ||
| 67 | 69 | |
| 68 | 70 | await database.insertInto('posts').values({ |
| 69 | 71 | uuid: postUuid, |
| 70 | title: body.slice(0, 80), | |
| 72 | title: input.title?.trim() || body.slice(0, 80), | |
| 71 | 73 | body, |
| 72 | 74 | status, |
| 73 | 75 | scheduled_at: scheduledAt, |