Skip to content

Commit

Permalink
Fix thread unroller crash
Browse files Browse the repository at this point in the history
  • Loading branch information
dangeredwolf committed Oct 24, 2024
1 parent b187524 commit 2cebe12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/bsky/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const followReplyChain = (thread: BlueskyThread): BlueskyPost[] => {
if (post.record?.reply.parent.cid === thread.post.cid) {
console.log('found it');
const bucket = [post];
const replies = followReplyChain(_post);
const replies = _post.replies ? followReplyChain(_post) : [];
return bucket.concat(replies);
}
}
Expand Down

0 comments on commit 2cebe12

Please sign in to comment.