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
8 changed files with 105 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ import { SimpleUserAvatar } from '../UserAvatar'
export default function ProfileCard({ userId }: { userId: string }) {
const pubkey = useMemo(() => userIdToPubkey(userId), [userId])
const { profile } = useFetchProfile(userId)
const { username, about } = profile || {}
const { username, about, emojis } = profile || {}
return (
<div className="w-full flex flex-col gap-2 not-prose">
@@ -24,6 +24,7 @@ export default function ProfileCard({ userId }: { userId: string }) {
{about && (
<ProfileAbout
about={about}
emojis={emojis}
className="text-sm text-wrap break-words w-full overflow-hidden text-ellipsis line-clamp-6"
/>
)}