Fix pubkeys in PersonAbout

This commit is contained in:
Jon Staab 2024-01-18 09:58:38 -08:00
parent 7462b6941f
commit eb6f20fd76
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Changelog
# 0.4.1
- [x] Fix pubkey display in PersonAbout
# 0.4.0
- [x] Add NIP 44 encryption support

View File

@ -9,8 +9,9 @@
export let truncate = false
const person = derivePerson(pubkey)
const about = $person.profile?.about || ""
const content = parseContent({content: truncate ? ellipsize(about, 140) : about})
$: about = $person.profile?.about || ""
$: content = parseContent({content: truncate ? ellipsize(about, 140) : about})
</script>
<p>
@ -24,7 +25,7 @@
{:else if type.startsWith("nostr:")}
<Anchor modal class="underline" href={value.entity}>
{#if value.pubkey}
{displayPerson($person)}
{displayPerson(derivePerson(value.pubkey).get())}
{:else if value.id}
event {value.id}
{:else}