a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(bluesky-threading): incorrect omit on publishThread

Mary f8fa7ce3 97d2ef31

+11 -6
+5
.changeset/polite-worlds-drop.md
··· 1 + --- 2 + '@atcute/bluesky-threading': patch 3 + --- 4 + 5 + fix incorrect omit on publishThread
+5 -5
packages/bluesky/threading/lib/index.ts
··· 34 34 35 35 /** 36 36 * Create post records and publish them 37 - * @param rpc An authenticated Bluesky RPC client 37 + * @param client An authenticated Bluesky RPC client 38 38 * @param thread Composed thread 39 39 * @returns An array of post records that were published 40 40 */ 41 41 export async function publishThread( 42 - rpc: Client, 43 - thread: Omit<ComposedThread, 'rpc'>, 42 + client: Client, 43 + thread: Omit<ComposedThread, 'client'>, 44 44 ): Promise<$type.enforce<ComAtprotoRepoApplyWrites.Create>[]> { 45 - const records = await createThread({ ...thread, client: rpc }); 45 + const records = await createThread({ ...thread, client: client }); 46 46 47 47 await ok( 48 - rpc.post('com.atproto.repo.applyWrites', { 48 + client.post('com.atproto.repo.applyWrites', { 49 49 signal: thread.signal, 50 50 input: { 51 51 repo: thread.author,
+1 -1
packages/bluesky/threading/lib/types.ts
··· 190 190 /** 191 191 * The post it should reply to, accepts either an AT-URI of the post, a view 192 192 * of the post, or an embed view of the post. Supplying an AT-URI requires you 193 - * to also supply an PRC instance for it to be able to make query calls. 193 + * to also supply an RPC instance for it to be able to make query calls. 194 194 */ 195 195 reply?: string | AppBskyFeedDefs.PostView | AppBskyEmbedRecord.ViewRecord; 196 196 /**