See the best posts from any Bluesky account
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix video embeds being dropped when alt text is missing

Bluesky video embeds don't always include alt text, but the parser
treated a missing alt field as a malformed embed and skipped it entirely.
Make VideoEmbed.alt optional and handle undefined gracefully.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+2 -2
+1 -1
app/lib/atproto/parsers/get_author_feed.ts
··· 109 109 const video: VideoEmbed = { 110 110 type: 'video', 111 111 thumbnail: getString(embed, 'thumbnail'), 112 - alt: getString(embed, 'alt'), 112 + alt: typeof embed['alt'] === 'string' ? embed['alt'] : undefined, 113 113 aspectRatio: parseAspectRatio(embed), 114 114 } 115 115 return video
+1 -1
app/lib/atproto/types.ts
··· 216 216 export interface VideoEmbed { 217 217 type: 'video' 218 218 thumbnail: string 219 - alt: string 219 + alt?: string 220 220 aspectRatio?: { width: number; height: number } 221 221 } 222 222