From f1fef2b8999fa63e0f3ccace170a5dafab1e1612 Mon Sep 17 00:00:00 2001 From: buttercat1791 Date: Tue, 20 May 2025 08:56:40 -0500 Subject: [PATCH] Use badge in inline profile --- src/lib/components/util/InlineProfile.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/components/util/InlineProfile.svelte b/src/lib/components/util/InlineProfile.svelte index fad8263..a80c7d1 100644 --- a/src/lib/components/util/InlineProfile.svelte +++ b/src/lib/components/util/InlineProfile.svelte @@ -2,7 +2,7 @@ import { Avatar } from 'flowbite-svelte'; import { type NDKUserProfile } from "@nostr-dev-kit/ndk"; import { ndkInstance } from '$lib/ndk'; - + import { userBadge } from '$lib/snippets/UserSnippets.svelte'; let { pubkey, title = null } = $props(); const externalProfileDestination = 'https://njump.me/' @@ -46,14 +46,14 @@ {#if loading} {title ?? '…'} {:else if anon } - {shortenNpub(npub)} + {@render userBadge(npub, username)} {:else if npub } - {username ?? shortenNpub(npub)} + {@render userBadge(npub, username)} {:else} {title ?? pubkey}