From a76d8dff4eafaa0f0bf73d05005d8ffeb8082ec5 Mon Sep 17 00:00:00 2001 From: Avi Date: Wed, 23 Sep 2026 16:06:19 -0500 Subject: [PATCH] feat(feed): resolve author names and pictures from kind-0 metadata --- frontend/src/lib/types.ts | 4 + frontend/src/screens/FeedScreen.tsx | 16 ++- frontend/src/test/FeedScreen.test.tsx | 16 +++ src/feed.rs | 162 +++++++++++++++++++++++++- 4 files changed, 193 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/types.ts b/frontend/src/lib/types.ts index 2faffd4..d0f98ab 100644 --- a/frontend/src/lib/types.ts +++ b/frontend/src/lib/types.ts @@ -142,6 +142,10 @@ export interface FeedItem { author: string; /** Bech32 `npub` of the author, for display. */ author_npub: string; + /** Author display name from their latest kind-0, when one was found. */ + author_name?: string | null; + /** Author picture URL from their latest kind-0, when one was found. */ + author_picture?: string | null; content: string; /** Unix timestamp the note was created. */ created_at: number; diff --git a/frontend/src/screens/FeedScreen.tsx b/frontend/src/screens/FeedScreen.tsx index 816ba4d..feda0a5 100644 --- a/frontend/src/screens/FeedScreen.tsx +++ b/frontend/src/screens/FeedScreen.tsx @@ -219,12 +219,20 @@ export function FeedScreen({ onNavigate }: FeedScreenProps) {