mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
Remove remaining genUserName references from docs and skill templates
This commit is contained in:
5 files changed
+8
-13
No files matched your search
@@ -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;
|
||||
// ...
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user