Something went wrong. Try again.
A small api and web interface to lookup some general information about ATProto users
Something went wrong. Try again.
1234567891011121314use std::collections::BTreeMap;
pub fn parse_collections(collections: Vec<String>) -> BTreeMap<String, Vec<String>> { let mut groups: BTreeMap<String, Vec<String>> = BTreeMap::new();
for collection in collections { let split: Vec<&str> = collection.split(".").collect(); let domain = split[1].to_string() + "." + split[0]; groups.entry(domain).or_default().push(collection); }
groups}