From 5e434292ad6ad1fca4ebb7eff2960b952839f21a Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 21 Jan 2026 00:55:31 +0900 Subject: [PATCH] fix login card link --- src/web/components/profile.ts | 5 ++--- src/web/main.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/web/components/profile.ts b/src/web/components/profile.ts index 1d182af..67436b4 100644 --- a/src/web/components/profile.ts +++ b/src/web/components/profile.ts @@ -31,7 +31,6 @@ export async function renderProfile( handle: string, webUrl?: string, localOnly = false, - isLoggedIn = false, collections: string[] = [] ): Promise { // Local mode: sync, no API call. Remote mode: async with API call @@ -52,9 +51,9 @@ export async function renderProfile( ? `${escapeHtml(displayName)}` : `
` - // Service icons (only for logged-in users with matching collections) + // Service icons (show for users with matching collections) let serviceIconsHtml = '' - if (isLoggedIn && collections.length > 0) { + if (collections.length > 0) { const services = getServiceLinks(handle, collections) if (services.length > 0) { const iconsHtml = services.map(s => ` diff --git a/src/web/main.ts b/src/web/main.ts index 1707f72..8a3c278 100644 --- a/src/web/main.ts +++ b/src/web/main.ts @@ -175,7 +175,7 @@ async function render(route: Route): Promise { // Profile section if (profile) { - html += await renderProfile(did, profile, handle, webUrl, localOnly, isOwner, collections) + html += await renderProfile(did, profile, handle, webUrl, localOnly, collections) } // Content section based on route type