MCPcopy Create free account
hub / github.com/block/buzz / fromRawProfile

Function fromRawProfile

desktop/src/shared/api/tauri.ts:422–431  ·  view source on GitHub ↗
(profile: RawProfile)

Source from the content-addressed store, hash-verified

420}
421
422function fromRawProfile(profile: RawProfile): Profile {
423 return {
424 pubkey: profile.pubkey,
425 displayName: profile.display_name,
426 avatarUrl: profile.avatar_url,
427 about: profile.about,
428 nip05Handle: profile.nip05_handle,
429 ownerPubkey: profile.owner_pubkey,
430 };
431}
432
433function fromRawUserProfileSummary(
434 profile: RawUserProfileSummary,

Callers 3

getProfileFunction · 0.85
updateProfileFunction · 0.85
getUserProfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected