From 7ce41bbeb97fc09d502287e9082419ee4c79d6f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Sat, 15 Mar 2025 08:57:10 +0100 Subject: [PATCH] Fix #133 make anon profiles better, include avatar in the link --- src/lib/components/util/InlineProfile.svelte | 28 +++++++++++++------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/lib/components/util/InlineProfile.svelte b/src/lib/components/util/InlineProfile.svelte index 507b3d8..4b9efe3 100644 --- a/src/lib/components/util/InlineProfile.svelte +++ b/src/lib/components/util/InlineProfile.svelte @@ -1,12 +1,13 @@ {#if loading} - -{:else if pubkey} - {shortenNpub(npub)} +{:else if npub } + + - {username} + {username ?? shortenNpub(npub)} + {:else} - Not found + {title ?? pubkey} {/if} \ No newline at end of file