Personal Site
0
fork

Configure Feed

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

actually use the helper functions

+20
+20
src/components/home/feeds/BskyPost.astro
··· 192 192 : external(media.external), 193 193 }; 194 194 }; 195 + 196 + const embed: embed | null = await (async () => { 197 + if (!post.embed) return null; 198 + switch (post.embed.$type) { 199 + case "app.bsky.embed.images": 200 + return images(post.embed.images); 201 + 202 + case "app.bsky.embed.video": 203 + return video(post.embed.video, post.embed.alt, post.embed.captions); 204 + 205 + case "app.bsky.embed.external": 206 + return external(post.embed.external); 207 + 208 + case "app.bsky.embed.record": 209 + return await record(post.embed.record.uri); 210 + 211 + case "app.bsky.embed.recordWithMedia": 212 + return recordWithMedia(post.embed.record.record.uri, post.embed.media); 213 + } 214 + })(); 195 215 ---