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
app/Actions/Postline/CrosspostPublishAction.tsmodified+2-1
Changes to app/Actions/Postline/CrosspostPublishAction.ts
@@ -11,6 +11,7 @@ export default new Action({
1111
1212 async handle(request: RequestInstance) {
1313 const text = String(request.get('text') || request.get('body') || '').trim()
14 const title = String(request.get('title') || '').trim() || undefined
1415
1516 const available = new Set<string>(crosspostProviders())
1617 const providers = String(request.get('providers') || request.get('provider') || '')
@@ -54,7 +55,7 @@ export default new Action({
5455 catch {}
5556
5657 try {
57 const content = { external, media: media.length ? media : undefined }
58 const content = { title, external, media: media.length ? media : undefined }
5859 const data = thread.length > 1
5960 ? await crosspost.publishThread(thread, providers, content)
6061 : await crosspost.publish(thread[0] || text, providers, content)