rspace-online/modules/rsocials/lib
Jeff Emmett 1cde95f3fc fix(rsocials): Postiz createPost/createThread use nested posts[] shape
Postiz's /public/v1/posts expects a nested envelope:
  { type, date, shortLink, tags, posts: [{ integration:{id}, value:[{content}], settings:{__type} }] }

The earlier shim's flat {content, integrationIds, type, scheduledAt} was
rejected with "All posts must have an integration id" (the field is named
integration, not integrationIds; it's a nested object, not an array of strings).

Also: Postiz treats PostItem.value[] as thread segments, so createThread now
sends ONE request with multiple value entries rather than N grouped posts.

Callers now pass full {id, identifier} tuples so settings.__type is set
correctly (otherwise Postiz can't route to the provider handler).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 10:49:18 -04:00
..
image-gen.ts feat: upgrade thread image prompts to memetic infographic style 2026-03-05 20:44:08 -08:00
listmonk-proxy.ts feat(rinbox): bridge Listmonk newsletter campaigns with multisig approval 2026-03-21 15:03:06 -07:00
postiz-client.ts fix(rsocials): Postiz createPost/createThread use nested posts[] shape 2026-04-17 10:49:18 -04:00
types.ts feat: refactor rSocials from monolith to full rApp 2026-03-04 20:42:18 -08:00