tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
don't render author img in bsky post embed if no avatar
schlage.town
6 months ago
50404a18
0c50d8ab
+9
-5
1 changed file
expand all
collapse all
unified
split
components
Blocks
BlueskyPostBlock
index.tsx
+9
-5
components/Blocks/BlueskyPostBlock/index.tsx
···
103
103
{post.post.author && record && (
104
104
<>
105
105
<div className="bskyAuthor w-full flex items-center gap-2">
106
106
-
<img
107
107
-
src={post.post.author?.avatar}
108
108
-
alt={`${post.post.author?.displayName}'s avatar`}
109
109
-
className="shink-0 w-8 h-8 rounded-full border border-border-light"
110
110
-
/>
106
106
+
{post.post.author?.avatar ? (
107
107
+
<img
108
108
+
src={post.post.author?.avatar}
109
109
+
alt={`${post.post.author?.displayName}'s avatar`}
110
110
+
className="shrink-0 w-8 h-8 rounded-full border border-border-light"
111
111
+
/>
112
112
+
) : (
113
113
+
<div className="shrink-0 w-8 h-8 rounded-full border border-border-light bg-border"></div>
114
114
+
)}
111
115
<div className="grow flex flex-col gap-0.5 leading-tight">
112
116
<div className=" font-bold text-secondary">
113
117
{post.post.author?.displayName}