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
making a couple useful bits public
Orual
4 months ago
10d719d2
74385c53
1/1
build.yml
success
4min 13s
+2
-2
1 changed file
expand all
collapse all
unified
split
crates
jacquard
src
richtext.rs
+2
-2
crates/jacquard/src/richtext.rs
···
67
67
/// Default domains that support at-URI extraction from URLs
68
68
/// (bsky.app URL patterns like /profile/{actor}/post/{rkey})
69
69
#[cfg(feature = "api_bluesky")]
70
70
-
static DEFAULT_EMBED_DOMAINS: &[&str] = &[
70
70
+
pub static DEFAULT_EMBED_DOMAINS: &[&str] = &[
71
71
"bsky.app",
72
72
"deer.social",
73
73
"blacksky.community",
···
656
656
///
657
657
/// Only works for domains in the provided `embed_domains` list.
658
658
#[cfg(feature = "api_bluesky")]
659
659
-
fn extract_at_uri_from_url(url: &str, embed_domains: &[&str]) -> Option<AtUri<'static>> {
659
659
+
pub fn extract_at_uri_from_url(url: &str, embed_domains: &[&str]) -> Option<AtUri<'static>> {
660
660
// Parse URL
661
661
let url_parsed = url::Url::parse(url).ok()?;
662
662