Something went wrong. Try again.
A personal app view to see Bsky posts of your followers (for when their app view goes down)
Something went wrong. Try again.
584 B · 27 lines
Rust
at test
12345678910111213141516171819202122232425262728pub 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<blob::BlobRef<'a>>, did: String, pds_endpoint: String,) -> Option<UriValue<'a>> { 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}