fix login card link

This commit is contained in:
2026-01-21 00:55:31 +09:00
parent a5ef15e4ee
commit d91c37d73a
2 changed files with 3 additions and 4 deletions

View File

@@ -31,7 +31,6 @@ export async function renderProfile(
handle: string,
webUrl?: string,
localOnly = false,
isLoggedIn = false,
collections: string[] = []
): Promise<string> {
// Local mode: sync, no API call. Remote mode: async with API call
@@ -52,9 +51,9 @@ export async function renderProfile(
? `<img src="${avatarUrl}" alt="${escapeHtml(displayName)}" class="profile-avatar">`
: `<div class="profile-avatar-placeholder"></div>`
// 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 => `

View File

@@ -175,7 +175,7 @@ async function render(route: Route): Promise<void> {
// 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