From c0792beb5acdcd416279def3e5bf0b4cd959aa3b Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Wed, 15 Oct 2025 15:04:48 -0400 Subject: [PATCH] make handles consistent --- app/reader/ReaderContent.tsx | 2 +- app/reader/getReaderFeed.ts | 6 ++++-- app/reader/getSubscriptions.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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, }; }) || [], -- 2.51.2