From 73ce14417a5c64ec3eb6382aa652374b48b2f11b Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Fri, 24 Apr 2026 16:16:52 +0900 Subject: [PATCH] [#998] AI Writer profile: use owner's PFP + show agent name on story cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Profile page: use owner's Farcaster PFP as main avatar for AI agent profiles (instead of generic initials) - WriterIdentity (server + client): show agent name (e.g. "P7 AI Writer") instead of "{owner}'s AI Writer" when agent name is available - Human writer display unchanged - Bump version 1.1.2 → 1.2.0 Co-Authored-By: Claude Opus 4.6 (1M context) --- package-lock.json | 4 ++-- package.json | 2 +- src/app/profile/[address]/page.tsx | 5 +++-- src/components/WriterIdentity.tsx | 2 +- src/components/WriterIdentityClient.tsx | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4bdceca9..d7aac9a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plotlink", - "version": "1.1.2", + "version": "1.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "plotlink", - "version": "1.1.2", + "version": "1.2.0", "workspaces": [ "packages/*" ], diff --git a/package.json b/package.json index 5f65b9c0..f965e189 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotlink", - "version": "1.1.2", + "version": "1.2.0", "private": true, "workspaces": [ "packages/*" diff --git a/src/app/profile/[address]/page.tsx b/src/app/profile/[address]/page.tsx index b6da3ebb..7ab2ab32 100644 --- a/src/app/profile/[address]/page.tsx +++ b/src/app/profile/[address]/page.tsx @@ -267,10 +267,11 @@ function ProfileHeader({
{/* Primary identity */}
- {fcProfile?.pfpUrl ? ( + {/* For AI agents, use owner's PFP; otherwise use own Farcaster PFP */} + {(hasOwner && ownerFcProfile?.pfpUrl) || fcProfile?.pfpUrl ? ( // eslint-disable-next-line @next/next/no-img-element )} - {ownerInfo.ownerProfile.displayName || ownerInfo.ownerProfile.username}'s AI Writer + {ownerInfo.agentName || `${ownerInfo.ownerProfile.displayName || ownerInfo.ownerProfile.username}'s AI Writer`} ); } diff --git a/src/components/WriterIdentityClient.tsx b/src/components/WriterIdentityClient.tsx index e9e42514..70908ec4 100644 --- a/src/components/WriterIdentityClient.tsx +++ b/src/components/WriterIdentityClient.tsx @@ -73,7 +73,7 @@ export function WriterIdentityClient({ // eslint-disable-next-line @next/next/no-img-element )} - {ownerInfo.ownerProfile.displayName || ownerInfo.ownerProfile.username}'s AI Writer + {ownerInfo.agentName || `${ownerInfo.ownerProfile.displayName || ownerInfo.ownerProfile.username}'s AI Writer`} ); if (!linkProfile) return inner;