tangled
alpha
login
or
join now
nonbinary.computer
/
jacquard
80
fork
atom
A better Rust ATProto crate
80
fork
atom
overview
issues
9
pulls
pipelines
made handle cross-validation at:// prefix-agnostic
Orual
4 months ago
b19347c6
ecc68877
0/1
build.yml
failed
2min 33s
+11
-2
2 changed files
expand all
collapse all
unified
split
crates
jacquard
Cargo.toml
jacquard-identity
src
lib.rs
+6
-2
crates/jacquard-identity/src/lib.rs
···
869
869
}
870
870
let mut warnings = Vec::new();
871
871
// Check handle alias presence (soft warning)
872
872
-
let expected_alias = format!("at://{}", handle.as_str());
873
872
let has_alias = doc_borrowed
874
873
.also_known_as
875
874
.as_ref()
876
876
-
.map(|v| v.iter().any(|s| s.as_ref() == expected_alias))
875
875
+
.map(|v| {
876
876
+
v.iter().any(|s| {
877
877
+
let s = s.strip_prefix("at://").unwrap_or(s);
878
878
+
s == handle.as_str()
879
879
+
})
880
880
+
})
877
881
.unwrap_or(false);
878
882
if !has_alias {
879
883
warnings.push(IdentityWarning::HandleAliasMismatch {
+5
crates/jacquard/Cargo.toml
···
70
70
path = "../../examples/public_atproto_feed.rs"
71
71
72
72
[[example]]
73
73
+
name = "thomas_bug"
74
74
+
path = "../../examples/thomas_bug.rs"
75
75
+
76
76
+
77
77
+
[[example]]
73
78
name = "create_whitewind_post"
74
79
path = "../../examples/create_whitewind_post.rs"
75
80