mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 11:43:43 +00:00
Extra logging on nip-05 fetch errors so I can see which domains they are and double-check manually
This commit is contained in:
parent
25d1c11652
commit
60332659b7
@ -35,7 +35,13 @@ pub async fn validate_nip05(person: DbPerson) -> Result<(), Error> {
|
||||
};
|
||||
|
||||
// Fetch NIP-05
|
||||
let nip05 = fetch_nip05(&user, &domain).await?;
|
||||
let nip05 = match fetch_nip05(&user, &domain).await {
|
||||
Ok(content) => content,
|
||||
Err(e) => {
|
||||
tracing::error!("NIP-05 fetch issue on {}", domain);
|
||||
return Err(e);
|
||||
}
|
||||
};
|
||||
|
||||
// Check if the response matches their public key
|
||||
match nip05.names.get(&user) {
|
||||
|
Loading…
Reference in New Issue
Block a user