From 38bcc3e6d10f203213eb5bc014f35e3736acf7a1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 26 Jan 2025 07:51:47 -0800 Subject: hide nostr stuff --- .../(app)/[username]/(profile)/+layout.server.ts | 16 +++++---- .../(app)/[username]/(profile)/+layout.svelte | 42 +++++++++++----------- 2 files changed, 31 insertions(+), 27 deletions(-) (limited to 'src/routes/(app)') diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts index 70e7ebdb..e2ab51b1 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.server.ts +++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts @@ -7,12 +7,16 @@ export async function load({ depends, parent }) { const rates = await getRates(); const { subject, user } = await parent(); - const { follows, followers } = await get(`/${subject.pubkey}/count`); - let followList = new Promise((r) => r([])); - if (user) - followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch( - () => [], - ); + // const { follows, followers } = await get(`/${subject.pubkey}/count`); + // let followList = new Promise((r) => r([])); + // if (user) + // followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch( + // () => [], + // ); + + const followList = new Promise((r) => r([])); + const follows = []; + const followers = []; return { follows, followers, followList, rate: rates[subject.currency] }; } diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index 9536d330..afd94ab0 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -125,9 +125,9 @@ - - - + + + {#if subject.about} @@ -149,24 +149,24 @@ {/if} -
- -
+ + + + + + + + + + + + + + + + + + {#if showDetails}
-- cgit v1.2.3