A better Rust ATProto crate
103
fork

Configure Feed

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

small fix for cid link in json if inferred

Orual 31f3fb7b 37d093d5

+6 -2
+6 -2
crates/jacquard-common/src/types/value.rs
··· 131 131 } 132 132 } 133 133 DataModelType::CidLink => { 134 - if let Some(value) = value.as_str() { 135 - map.insert(key.to_smolstr(), Data::CidLink(Cid::Str(value.into()))); 134 + if let Some(value) = value.as_object() { 135 + if let Some(value) = value.get("$link").and_then(|v| v.as_str()) { 136 + map.insert(key.to_smolstr(), Data::CidLink(Cid::Str(value.into()))); 137 + } else { 138 + map.insert(key.to_smolstr(), Object::from_json(value)); 139 + } 136 140 } else { 137 141 map.insert(key.to_smolstr(), Data::from_json(value)); 138 142 }