From 27cceb96f33c86a06507a9ad3e631171474100b4 Mon Sep 17 00:00:00 2001
From: Eric Bailey <git@esb.lol>
Date: Fri, 20 Sep 2024 11:28:25 -0500
Subject: Add explicit non-handling of detached quotes in embed (#5156)

---
 bskyembed/src/components/embed.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'bskyembed/src/components/embed.tsx')

diff --git a/bskyembed/src/components/embed.tsx b/bskyembed/src/components/embed.tsx
index 1ed107b59..82c3fd60a 100644
--- a/bskyembed/src/components/embed.tsx
+++ b/bskyembed/src/components/embed.tsx
@@ -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
     }
-- 
cgit 1.4.1

