Personal Site
0
fork

Configure Feed

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

Add types for all possible embeds

+42
+42
src/components/home/feeds/BskyPost.astro
··· 45 45 }).toString(), 46 46 pds, 47 47 ).toString(); 48 + 49 + // types 50 + type embedImages = { 51 + $type: "app.bsky.embed.images"; 52 + images: { alt: string; cid: Blob | LegacyBlob }[]; 53 + }; 54 + 55 + type embedVideo = { 56 + $type: "app.bsky.embed.video"; 57 + cid: Blob | LegacyBlob; 58 + alt: string | undefined; 59 + subtitles: 60 + | { 61 + cid: Blob | LegacyBlob; 62 + lang: string; 63 + }[] 64 + | undefined; 65 + }; 66 + 67 + type embedExternal = { 68 + $type: "app.bsky.embed.external"; 69 + title: string; 70 + url: string; 71 + thumb: Blob | LegacyBlob | undefined; 72 + }; 73 + type embedRecord = { 74 + $type: "app.bsky.embed.record"; 75 + record: AppBskyFeedPost.Main; 76 + author: Author; 77 + }; 78 + type embedRecordWithMedia = { 79 + $type: "app.bsky.embed.recordWithMedia"; 80 + record: embedRecord; 81 + media: embedImages | embedVideo | embedExternal; 82 + }; 83 + 84 + type embed = 85 + | embedImages 86 + | embedVideo 87 + | embedExternal 88 + | embedRecord 89 + | embedRecordWithMedia; 48 90 ---