π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: schedule post preview url
Nevo David8c63e6863dd8
diff --git a/libraries/nestjs-libraries/src/chat/tools/integration.schedule.post.ts b/libraries/nestjs-libraries/src/chat/tools/integration.schedule.post.tsindex 39d11cbd7..ca96e3c3c 100644--- a/libraries/nestjs-libraries/src/chat/tools/integration.schedule.post.ts+++ b/libraries/nestjs-libraries/src/chat/tools/integration.schedule.post.ts@@ -60,6 +60,7 @@ A single LinkedIn post with one comment- postsAndComments array length will be oneDo not use this to update or delete existing posts.+On success, each item in output contains a previewUrl the user can open to see the post.If validation fails, the result contains output.errors describing what to fix; the call can be retried with corrected parameters.`,inputSchema: z.object({@@ -127,6 +128,11 @@ If validation fails, the result contains output.errors describing what to fix; tz.object({postId: z.string(),integration: z.string(),+ previewUrl: z+ .string()+ .describe(+ 'Public preview page of the created post, share it with the user'+ ),})).or(z.object({ errors: z.string() })),@@ -246,7 +252,13 @@ If validation fails, the result contains output.errors describing what to fix; t},],}, 'MCP');- finalOutput.push(...output);+ // Same public preview page the calendar "Preview Post" button opens.+ finalOutput.push(+ ...output.map((p) => ({+ ...p,+ previewUrl: `${process.env.FRONTEND_URL}/p/${p.postId}?share=true`,+ }))+ );}return {