From cf78b3e28fbc5eb9f73aacb0fcb0c1d8a5fdae3c Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Fri, 15 May 2026 10:46:38 +0200 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20use=20thought.author.avatarUrl?= =?UTF-8?q?=20as=20base=20in=20ThoughtThread=20=E2=80=94=20fixes=20remote?= =?UTF-8?q?=20author=20avatars=20on=20feed=20and=20detail=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- thoughts-frontend/components/thought-thread.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thoughts-frontend/components/thought-thread.tsx b/thoughts-frontend/components/thought-thread.tsx index 1640288..c256db7 100644 --- a/thoughts-frontend/components/thought-thread.tsx +++ b/thoughts-frontend/components/thought-thread.tsx @@ -17,7 +17,8 @@ export function ThoughtThread({ const author = { username: thought.author.username, displayName: thought.author.displayName, - ...authorDetails.get(thought.author.username), + avatarUrl: thought.author.avatarUrl, // API-provided avatar (from DB COALESCE) + ...authorDetails.get(thought.author.username), // override for local users }; return (