Remove remaining genUserName references from docs and skill templates

This commit is contained in:
Alex Gleason committed 2026-05-30 18:44:53 +02:00
1 parent 881629a746
commit 2b7d6655af
5 files changed
+8 -13

No files matched your search

+1 -2
View File
@@ -155,13 +155,12 @@ Fetch profile metadata (kind 0) for a pubkey:
```tsx
import type { NostrEvent, NostrMetadata } from '@nostrify/nostrify';
import { useAuthor } from '@/hooks/useAuthor';
import { genUserName } from '@/lib/genUserName';
function Post({ event }: { event: NostrEvent }) {
const author = useAuthor(event.pubkey);
const metadata: NostrMetadata | undefined = author.data?.metadata;
const displayName = metadata?.name ?? genUserName(event.pubkey);
const displayName = metadata?.name ?? 'Anonymous';
const profileImage = metadata?.picture;
// ...
}