Personal Site
0
fork

Configure Feed

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

Add uri field to record embeds

+4 -2
+2 -1
src/components/home/feeds/post-embeds.ts
··· 62 62 nested: boolean, 63 63 ): Promise<Prettify<embedRecord>> => { 64 64 if (nested) 65 - return { $type: "app.bsky.embed.record", record: null, author: null }; 65 + return { $type: "app.bsky.embed.record", record: null, author: null, uri }; 66 66 const data = await client 67 67 .get("app.bsky.feed.getPosts", { 68 68 params: { ··· 84 84 handle: data.posts[0].author.handle, 85 85 avatar: data.posts[0].author.avatar, 86 86 }, 87 + uri, 87 88 }; 88 89 }; 89 90
+2 -1
src/components/home/feeds/post-types.ts
··· 1 1 import type { AppBskyFeedPost } from "@atcute/bluesky"; 2 - import type { Blob, LegacyBlob } from "@atcute/lexicons"; 2 + import type { Blob, LegacyBlob, ResourceUri } from "@atcute/lexicons"; 3 3 4 4 export interface Author { 5 5 did: `did:${string}:${string}`; ··· 40 40 $type: "app.bsky.embed.record"; 41 41 record: AppBskyFeedPost.Main | null; 42 42 author: Author | null; 43 + uri: ResourceUri; 43 44 }; 44 45 45 46 export type embedRecordWithMedia = {