+2
-2
src/bsky.rs
+2
-2
src/bsky.rs
···
97
97
if let Some(embeds) = record.get_key_value("embed") {
98
98
let embeds = embeds.1;
99
99
100
-
// for bsky.social we're gonna take a shortcut, as we're pretty much 100% sure that the PDS will be at bsky.social
101
-
let pds_endpoint = if name.ends_with(".bsky.social") {
100
+
// for official bsky domains we take a shortcut, as we're pretty much 100% sure that the PDS will be at bsky.social
101
+
let pds_endpoint = if ["bsky.social", "bsky.app", "bsky.team"].iter().any(|&d| did == d || did.ends_with(&format!(".{}", d))) {
102
102
"https://bsky.social".to_string()
103
103
} else {
104
104
resolve_plc_did(did).await?