From 51e4a492bc77c7848c3f2feb8030a98c590788ad Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 17 Jun 2025 13:11:04 +0900 Subject: [PATCH] fix: display correct author for user chat messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, all chat messages in the 'chat' tab were showing with AI account info regardless of the actual author. This fix ensures the author information from the record is used, only falling back to AI profile when no author is present. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- oauth/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oauth/src/App.tsx b/oauth/src/App.tsx index f97dce7..b881f35 100644 --- a/oauth/src/App.tsx +++ b/oauth/src/App.tsx @@ -1213,8 +1213,8 @@ function App() { // Extract content based on format const contentText = isNewFormat ? value.text : (value.content || value.body || ''); - // For AI comments, always use the loaded AI profile instead of record.value.author - const authorInfo = aiProfile; + // Use the author from the record if available, otherwise fall back to AI profile + const authorInfo = value.author || aiProfile; const postInfo = isNewFormat ? value.post : null; const contentType = value.type || 'unknown'; const createdAt = value.createdAt || value.generated_at || '';