diff --git a/app/reader/ReaderContent.tsx b/app/reader/ReaderContent.tsx index 09ab23b5..200f5730 100644 --- a/app/reader/ReaderContent.tsx +++ b/app/reader/ReaderContent.tsx @@ -159,7 +159,7 @@ const Post = (props: Post) => { /> diff --git a/app/reader/getReaderFeed.ts b/app/reader/getReaderFeed.ts index ffa034d1..b390e08a 100644 --- a/app/reader/getReaderFeed.ts +++ b/app/reader/getReaderFeed.ts @@ -51,7 +51,9 @@ export async function getReaderFeed( pubRecord: pub?.record || null, uri: pub?.uri || "", }, - author: handle, + author: handle?.alsoKnownAs?.[0] + ? `@${handle.alsoKnownAs[0].slice(5)}` + : null, documents: { comments_on_documents: post.comments_on_documents, document_mentions_in_bsky: post.document_mentions_in_bsky, @@ -78,7 +80,7 @@ export async function getReaderFeed( } export type Post = { - author: DidDocument | null; + author: string | null; publication: { href: string; pubRecord: Json; diff --git a/app/reader/getSubscriptions.ts b/app/reader/getSubscriptions.ts index 76d6b400..e13a5d4b 100644 --- a/app/reader/getSubscriptions.ts +++ b/app/reader/getSubscriptions.ts @@ -44,7 +44,7 @@ export async function getSubscriptions(cursor?: Cursor | null): Promise<{ return { ...pub.publications!, authorProfile: id?.alsoKnownAs?.[0] - ? { handle: id.alsoKnownAs[0] } + ? { handle: `@${id.alsoKnownAs[0].slice(5)}` } : undefined, }; }) || [],