very fast at protocol indexer with flexible filtering, xrpc queries, cursor-backed event stream, and more, built on fjall
rust fjall at-protocol atproto indexer
58
fork

Configure Feed

Select the types of activity you want to include in your feed.

[api] actually reject banned pds in requestCrawl

dawn 064ef914 e1ab350c

+9
+9
src/api/xrpc/request_crawl.rs
··· 14 14 let url_str = format!("wss://{}/", req.hostname); 15 15 let url = Url::parse(&url_str).map_err(|e| bad_request(nsid, e))?; 16 16 17 + if hydrant.pds.is_banned(&req.hostname) { 18 + return Err(XrpcErrorResponse { 19 + status: StatusCode::BAD_REQUEST, 20 + error: jacquard_common::xrpc::XrpcError::Xrpc(RequestCrawlError::HostBanned(Some( 21 + "host is banned".into(), 22 + ))), 23 + }); 24 + } 25 + 17 26 hydrant 18 27 .firehose 19 28 .add_source(url, true)