a tool for shared writing and social publishing

make handles consistent

+6 -4
+1 -1
app/reader/ReaderContent.tsx
··· 159 159 /> 160 160 <Separator classname="h-4 !min-h-0 md:block hidden" /> 161 161 <PostInfo 162 - author={props.author?.alsoKnownAs?.[0]?.slice(5) || ""} 162 + author={props.author || ""} 163 163 publishedAt={postRecord.publishedAt} 164 164 /> 165 165 </div>
+4 -2
app/reader/getReaderFeed.ts
··· 51 51 pubRecord: pub?.record || null, 52 52 uri: pub?.uri || "", 53 53 }, 54 - author: handle, 54 + author: handle?.alsoKnownAs?.[0] 55 + ? `@${handle.alsoKnownAs[0].slice(5)}` 56 + : null, 55 57 documents: { 56 58 comments_on_documents: post.comments_on_documents, 57 59 document_mentions_in_bsky: post.document_mentions_in_bsky, ··· 78 80 } 79 81 80 82 export type Post = { 81 - author: DidDocument | null; 83 + author: string | null; 82 84 publication: { 83 85 href: string; 84 86 pubRecord: Json;
+1 -1
app/reader/getSubscriptions.ts
··· 44 44 return { 45 45 ...pub.publications!, 46 46 authorProfile: id?.alsoKnownAs?.[0] 47 - ? { handle: id.alsoKnownAs[0] } 47 + ? { handle: `@${id.alsoKnownAs[0].slice(5)}` } 48 48 : undefined, 49 49 }; 50 50 }) || [],