Repository navigation
Document single-channel posts (API, MCP, webhooks) - #27
Open
paulocastellano wants to merge 2 commits into
Open
paulocastellano wants to merge 2 commits into
paulocastellano wants to merge 2 commits into
Conversation
A post has one channel, stored at the top of the post. The platforms list, post.partially_published and post_platform_id are gone from the REST API, MCP tools and webhooks.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the contract change in trypostit/trypost#397 (merge
post_platformsintoposts). Merge together with that deploy, not before.What changes
openapi.json): thePostPlatformschema and everyplatforms[]are gone. The channel fields sit at the top, in the order ofapp/Http/Resources/Api/PostResource.php:45-55.partially_publishedis removed fromstatus(app/Enums/Post/Status.php), andpublish_statusis added (app/Enums/Post/PublishStatus.php).social_account_id(create only),content_typeandmeta.platformsis refused (app/Support/Requests/Post/PostRequestRules.php:58-68,:117-118).meta.*/content_typeon single posts,destinations.N.*on batches (app/Support/PostCompositionValidator.php,forSinglePost).app/Services/Post/PostPreviewer.php:44-75,app/Actions/Analytics/ReadPublicationAnalytics.php:38-47). Analytics usespost_idinstead ofpost_platform_id. Each repurpose item post is{id, platform, publish_status}(app/Http/Resources/Api/RepurposeItemResource.php:24-28).app/Services/WebhookService.php:110-144).post.partially_publishedis removed, and stored subscriptions move topost.published+post.failed(database/migrations/2026_10_08_222943_backfill_posts_from_post_platforms.php:190-206). A replayed old delivery keeps its old payload.create-post-toolarguments, the get/preview/metrics output, and the event list.platforms[].meta.Xbecomesmeta.X(rules unchanged,app/Support/PostPlatformMetaRules.php).app/Actions/Post/BuildPublishPageProps.php:48).release:trypost-2first; the first new migration stops otherwise and rolls back (database/migrations/2026_10_08_222940_prepare_post_platforms_for_merge_into_posts.php).Line numbers refer to the PR branch
feat/merge-post-platforms-into-posts.Before merging
v2.0.0tag/release must exist on trypostit/trypost (today the latest isv1.1.0). The upgrade page links to it.Checks
npx mint validate: passednpx mint broken-links: no broken linkspython3 -m json.tool openapi.json: valid