pub mod feedgen; pub mod profile; pub mod routes; pub mod timeline; use jacquard::types::{blob, uri::UriValue}; pub fn get_blob_uri<'a>( blob: Option>, did: String, pds_endpoint: String, ) -> Option> { if let Some(uri) = blob .as_ref() .map(|blob| { let cid = blob.blob().cid(); UriValue::new_owned(format!( "{pds_endpoint}/xrpc/com.atproto.sync.getBlob?did={did}&cid={cid}" )) }) .transpose() .ok() { return uri; } None }