tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
a tool for shared writing and social publishing
283
fork
atom
overview
issues
26
pulls
pipelines
show proper error for not found bsky posts
awarm.space
3 days ago
dcb147ea
4ba387ab
+2
-1
1 changed file
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
PostContent.tsx
+2
-1
app/lish/[did]/[publication]/[rkey]/PostContent.tsx
···
32
32
import { PublishedPollBlock } from "./Blocks/PublishedPollBlock";
33
33
import { PollData } from "./fetchPollData";
34
34
import { ButtonPrimary } from "components/Buttons";
35
35
+
import { PostNotAvailable } from "components/Blocks/BlueskyPostBlock/BlueskyEmbed";
35
36
36
37
export function PostContent({
37
38
blocks,
···
170
171
case PubLeafletBlocksBskyPost.isMain(b.block): {
171
172
let uri = b.block.postRef.uri;
172
173
let post = bskyPostData.find((p) => p.uri === uri);
173
173
-
if (!post) return <div>no prefetched post rip</div>;
174
174
+
if (!post) return <PostNotAvailable />;
174
175
return (
175
176
<PubBlueskyPostBlock
176
177
post={post}