From dcb147ea4cfc390746728c1cfdb7be09f1c62ebc Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 3 Feb 2026 23:24:49 +0000 Subject: [PATCH] show proper error for not found bsky posts --- app/lish/[did]/[publication]/[rkey]/PostContent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lish/[did]/[publication]/[rkey]/PostContent.tsx b/app/lish/[did]/[publication]/[rkey]/PostContent.tsx index 8e53ba17..37e7980b 100644 --- a/app/lish/[did]/[publication]/[rkey]/PostContent.tsx +++ b/app/lish/[did]/[publication]/[rkey]/PostContent.tsx @@ -32,6 +32,7 @@ import { PublishedPageLinkBlock } from "./Blocks/PublishedPageBlock"; import { PublishedPollBlock } from "./Blocks/PublishedPollBlock"; import { PollData } from "./fetchPollData"; import { ButtonPrimary } from "components/Buttons"; +import { PostNotAvailable } from "components/Blocks/BlueskyPostBlock/BlueskyEmbed"; export function PostContent({ blocks, @@ -170,7 +171,7 @@ export let Block = ({ case PubLeafletBlocksBskyPost.isMain(b.block): { let uri = b.block.postRef.uri; let post = bskyPostData.find((p) => p.uri === uri); - if (!post) return
no prefetched post rip
; + if (!post) return ; return (