From a3ff0402eedbca619f46aa6691bc4783a77aedb0 Mon Sep 17 00:00:00 2001 From: Rudy Fraser Date: Thu, 5 Feb 2026 17:36:39 -0500 Subject: [PATCH] Route replies to community posts through community endpoint When replying to a community post, the reply must also be created as a community post to maintain thread integrity. Previously, replies were being created as standard app.bsky.feed.post records, breaking the community-only thread chain. Now checks if replyTo URI contains 'community.blacksky.feed.post' and routes to postCommunity() automatically, regardless of blackskyOnly toggle. --- src/lib/api/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/api/index.ts b/src/lib/api/index.ts index 76bec2fd6..f382bff01 100644 --- a/src/lib/api/index.ts +++ b/src/lib/api/index.ts @@ -65,7 +65,13 @@ export async function post( const thread = opts.thread opts.onStateChange?.(t`Processing...`) - if (thread.blackskyOnly) { + // Route to community post endpoint if: + // 1. User explicitly selected "Blacksky Only" + // 2. Replying to a community post (replies must stay in the community) + const isReplyToCommunityPost = + opts.replyTo && opts.replyTo.includes(COMMUNITY_POST_COLLECTION) + + if (thread.blackskyOnly || isReplyToCommunityPost) { return postCommunity(agent, queryClient, opts) } -- knotmirror 0.0.1