nip05: fix not calling underscored fetch

This commit is contained in:
Alex Gleason 2023-05-07 12:02:55 -05:00 committed by fiatjaf_
parent 341ccc5ac5
commit 6a07d2d9d3
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export async function queryProfile(fullname: string): Promise<ProfilePointer | n
const [_, name = '_', domain] = match const [_, name = '_', domain] = match
try { try {
const res = await fetch(`https://${domain}/.well-known/nostr.json?name=${name}`) const res = await _fetch(`https://${domain}/.well-known/nostr.json?name=${name}`)
const { names, relays } = parseNIP05Result(await res.json()) const { names, relays } = parseNIP05Result(await res.json())
const pubkey = names[name] const pubkey = names[name]