ReviewOS

also looking at this

stacks/postline

Long-form composer mode for the blog target

#10
Merged glennmichael123 wants to merge feat/blog-longform into main
7 files +33 -8
resources/assets/scripts/postline-social.tsmodified+3-0
Changes to resources/assets/scripts/postline-social.ts
@@ -22,6 +22,8 @@ export interface CrosspostResultItem {
2222export interface CrosspostInput {
2323 text: string
2424 providers: string[]
25 /** Explicit title for long-form targets (blog). */
26 title?: string
2527 external?: { uri: string, title: string, description?: string }
2628 image?: { url: string, altText?: string }
2729 /** Attached image file — uploaded to providers that accept bytes (Bluesky). */
@@ -59,6 +61,7 @@ export async function publishCrosspost(input: CrosspostInput): Promise<{ postId:
5961 const body = new FormData()
6062 body.set('text', input.text)
6163 body.set('providers', input.providers.join(','))
64 if (input.title) body.set('title', input.title)
6265 if (input.thread && input.thread.length > 1)
6366 body.set('thread', JSON.stringify(input.thread))
6467 if (input.external?.uri && input.external?.title) {