diff options
Diffstat (limited to 'src/webmentions')
-rw-r--r-- | src/webmentions/check.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webmentions/check.rs b/src/webmentions/check.rs index f7322f7..6dc6a25 100644 --- a/src/webmentions/check.rs +++ b/src/webmentions/check.rs @@ -90,7 +90,7 @@ pub fn check_mention(document: impl AsRef<str> + std::fmt::Debug, base_url: &url continue 'nodes_loop; } } - // if it's not `<a href="...">`, skip it + // if it's not `<a href="...">`, skip it if attr.name.local != *"href" { continue; } // Be forgiving in parsing URLs, and resolve them against the base URL if let Ok(url) = base_url.join(attr.value.as_ref()) { @@ -105,7 +105,7 @@ pub fn check_mention(document: impl AsRef<str> + std::fmt::Debug, base_url: &url } } } - + } } |