From cd04d54b9ab10b766283e7d3d91dd90ce2d4da75 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 5 Apr 2021 20:33:06 +0200 Subject: [PATCH] Update for API v3 --- src/crawl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crawl.rs b/src/crawl.rs index c907162..60aa9b5 100644 --- a/src/crawl.rs +++ b/src/crawl.rs @@ -79,7 +79,7 @@ async fn fetch_instance_details(domain: &str) -> Result let node_info_url = format!("https://{}/nodeinfo/2.0.json", domain); let node_info_request = client.get(&node_info_url).timeout(REQUEST_TIMEOUT).send(); - let site_info_url = format!("https://{}/api/v2/site", domain); + let site_info_url = format!("https://{}/api/v3/site", domain); let site_info_request = client.get(&site_info_url).timeout(REQUEST_TIMEOUT).send(); let (node_info, site_info) = try_join!(node_info_request, site_info_request)?;