mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-29 00:10:52 +00:00
Fix pubkeys in PersonAbout
This commit is contained in:
parent
7462b6941f
commit
eb6f20fd76
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
# 0.4.1
|
||||
|
||||
- [x] Fix pubkey display in PersonAbout
|
||||
|
||||
# 0.4.0
|
||||
|
||||
- [x] Add NIP 44 encryption support
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user