diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-09-03 08:32:53 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-09-03 08:32:53 +0100 |
| commit | f9af579148f1cbf8f062c8172535f33a0ca99934 (patch) | |
| tree | 84354977ebf6e7e1b0157bc6fddc267950bda566 /src | |
| parent | 00d38ac675c69cacab3c4ad3ad1c34666c06d293 (diff) | |
fix: nostr:// nip05 without local
the patch I sent to rust-nostr library got merged
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/client.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/client.rs b/src/lib/client.rs index b8d2856..92bf266 100644 --- a/src/lib/client.rs +++ b/src/lib/client.rs | |||
| @@ -888,13 +888,6 @@ pub async fn fetch_public_key(signer: &Arc<dyn NostrSigner>) -> Result<nostr::Pu | |||
| 888 | } | 888 | } |
| 889 | 889 | ||
| 890 | pub async fn nip05_query(nip05_addr: &str) -> Result<Nip05Profile> { | 890 | pub async fn nip05_query(nip05_addr: &str) -> Result<Nip05Profile> { |
| 891 | // can be removed if this rust-nostr patch is merged | ||
| 892 | // nostr:nevent1qvzqqqqx2ypzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqqsv0xw23ejw77lfvlaqv5y5nnvdc0p68kmvp2vnklpe9wxx0lkugdcv4zjgk | ||
| 893 | let nip05_addr = if nip05_addr.contains('@') { | ||
| 894 | nip05_addr | ||
| 895 | } else { | ||
| 896 | &format!("_@{nip05_addr}") | ||
| 897 | }; | ||
| 898 | let addr_deconstructed = Nip05Address::parse(nip05_addr) | 891 | let addr_deconstructed = Nip05Address::parse(nip05_addr) |
| 899 | .context(format!("cannot parse nip05 address: {nip05_addr}"))?; | 892 | .context(format!("cannot parse nip05 address: {nip05_addr}"))?; |
| 900 | let json_res: Value = reqwest::Client::new() | 893 | let json_res: Value = reqwest::Client::new() |