feat: support NIP-30 custom emojis in bio and display name (#660)

This commit is contained in:
Alex Gleason 2025-11-14 08:01:29 -06:00 committed by GitHub
parent f8cca5522f
commit 82c13006ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 105 additions and 11 deletions

View file

@ -109,7 +109,7 @@ export default function Profile({ id }: { id?: string }) {
}
if (!profile) return <NotFound />
const { banner, username, about, pubkey, website, lightningAddress } = profile
const { banner, username, about, pubkey, website, lightningAddress, emojis } = profile
return (
<>
<div ref={topContainerRef}>
@ -161,6 +161,7 @@ export default function Profile({ id }: { id?: string }) {
<Collapsible>
<ProfileAbout
about={about}
emojis={emojis}
className="text-wrap break-words whitespace-pre-wrap mt-2 select-text"
/>
</Collapsible>