Skip to content

Commit

Permalink
Add explicit non-handling of detached quotes in embed (#5156)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Sep 20, 2024
1 parent fa6f6f9 commit 27cceb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bskyembed/src/components/embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ export function Embed({
return <Info>The quoted post is blocked.</Info>
}

// Case 3.8: Detached quote post
if (AppBskyEmbedRecord.isViewDetached(record)) {
// Just don't show anything
return null
}

// Unknown embed type
return null
}
Expand Down

0 comments on commit 27cceb9

Please sign in to comment.