Skip to content

Commit

Permalink
Update typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dangeredwolf committed Oct 24, 2024
1 parent 2cebe12 commit 1d88dff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/providers/bsky/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export const fetchBskyThread = async (post: string, author: string, processThrea
};

const followReplyChain = (thread: BlueskyThread): BlueskyPost[] => {
if (!thread.replies)
return [];

for (const _post of thread.replies) {
const post = _post.post;
if (post.author.did !== thread.post.author.did) {
Expand Down
2 changes: 1 addition & 1 deletion src/types/vendor/bsky.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ type BlueskyRecord = {
type BlueskyThread = {
parent: BlueskyThread;
post: BlueskyPost;
replies: BlueskyThread[];
replies?: BlueskyThread[];
};

type BlueskyThreadResponse = {
Expand Down

0 comments on commit 1d88dff

Please sign in to comment.