diff --git a/web/src/routes/[handle]/+page.ts b/web/src/routes/[handle]/+page.ts --- a/web/src/routes/[handle]/+page.ts +++ b/web/src/routes/[handle]/+page.ts @@ -141,14 +141,14 @@ did, doc ? { - did: doc.did, - handle: doc.handle, - avatar: doc.avatar, - followers, - following, - isSelf, - viewerFollowRkey - } + did: doc.did, + handle: doc.handle, + avatar: doc.avatar, + followers, + following, + isSelf, + viewerFollowRkey + } : { did, handle: did, followers, following, isSelf, viewerFollowRkey } ); }); @@ -164,8 +164,7 @@ return Promise.all( items.map(async (item): Promise => { const value = item.value as VouchRecord; - const otherDid = - direction === "incoming" ? didFromUri(item.uri) : rkeyFromUri(item.uri); + const otherDid = direction === "incoming" ? didFromUri(item.uri) : rkeyFromUri(item.uri); const doc = await cache.resolve(otherDid).catch(() => null); return { uri: item.uri, @@ -240,11 +239,11 @@ const [found, viewerStarRkeys] = await Promise.all([ q ? search(ctx, { q, nsid: "sh.tangled.repo", author: did, limit: PAGE_LIMIT }).then( - (page) => page.hits - ) + (page) => page.hits + ) : fetchPage(ctx, "sh.tangled.repo.listRepos", { subject: did, limit: PAGE_LIMIT }).then( - (page) => page.items - ), + (page) => page.items + ), parent.auth?.did ? listStarRkeys(ctx, parent.auth.did) : undefined ]); return { diff --git a/web/src/lib/components/repo/StarButton.svelte b/web/src/lib/components/repo/StarButton.svelte --- a/web/src/lib/components/repo/StarButton.svelte +++ b/web/src/lib/components/repo/StarButton.svelte @@ -67,19 +67,22 @@ + /> {#each items as item, i (typeof item === "number" ? item : `${item}-${i}`)} {#if typeof item === "number"} - + {:else}