Add thread posting support across social media platforms#157
Draft
Add thread posting support across social media platforms#157
Conversation
…stodon) Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Crosspost to support posting to threads
Add thread posting support across social media platforms
Jan 19, 2026
Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
Contributor
Author
Refactored all three strategies to eliminate duplication. Each strategy now uses private helper methods that contain the shared logic:
The public Commit: 52ae9fc |
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.
Implementation Complete ✅
Summary
Successfully implemented thread posting support for Crosspost, allowing users to post multi-message threads across social media platforms.
Latest Changes (API Consistency Improvements)
post()method signature remains unchanged#postTweet()helper method that accepts reply info;post()andpostThread()both delegate to this helper#postStatus()helper method that accepts reply info;post()andpostThread()both delegate to this helperpostMessage()accepting optional reply infoResult: Clean separation between public API and internal implementation, no breaking changes to existing
post()method signatureChanges Made
Type Definitions (
src/types.js)PostThreadEntrytype with message and optional imagesPostThreadOptionstype with optional AbortSignalStrategytype to include optionalpostThread()methodClient Implementation (
src/client.js)Client.postThread()methodpostThread()supportpost()calls for strategies without native supportSuccessResponse/FailureResponseStrategy Implementations - Clean Architecture
✅ Twitter/X (
src/strategies/twitter.js)#createClient()method for client creation#uploadImages()method for image uploading#postTweet()method for posting with optional reply infopost()method maintains original signaturepostThread()uses shared helpers for code reuse✅ Bluesky (
src/strategies/bluesky.js)postMessage()helper to accept optionalreplyInfoparameterpost()andpostThread()both delegate topostMessage()✅ Mastodon (
src/strategies/mastodon.js)#postStatus()method for posting with optional reply infopost()method maintains original signaturepostThread()uses shared helper for code reuseTesting (
tests/client.test.js)Client.postThread()Quality Assurance
Strategy Support
Platforms with native thread support:
Platforms using fallback (sequential posts):
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.