Add explicit non-handling of detached quotes in embed (#5156)

This commit is contained in:
Eric Bailey
2024-09-20 11:28:25 -05:00
committed by GitHub
parent fa6f6f9e47
commit 27cceb96f3
+6
View File
@@ -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
}