···11use crate::error::AppError;
2233/// Extract the DID from an AT URI (at://did/collection/rkey).
44+#[allow(dead_code)]
45pub(crate) fn parse_did_from_at_uri(uri: &str) -> Result<String, AppError> {
56 let stripped = uri
67 .strip_prefix("at://")
+1
src/repo/media.rs
···2233/// Walk `media[]` and add a `url` field to each blob so the frontend can
44/// display images directly.
55+#[allow(dead_code)]
56pub(crate) fn enrich_media_blobs(record: &mut Value, pds: &str, did: &str) {
67 let media = match record.get_mut("media").and_then(|m| m.as_array_mut()) {
78 Some(arr) => arr,