diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gemini_to_html.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gemini_to_html.rs b/src/gemini_to_html.rs index b6dca1e..8adfd52 100644 --- a/src/gemini_to_html.rs +++ b/src/gemini_to_html.rs @@ -60,7 +60,7 @@ pub fn gemini_to_html( if var("PROXY_BY_DEFAULT").unwrap_or_else(|_| "true".to_string()) == "true" - && to.contains("gemini://") + && href.contains("gemini://") { if is_proxy || href @@ -104,7 +104,7 @@ pub fn gemini_to_html( html.push_str(&format!( "<p><a href=\"{}\">{}</a></p>\n", href, - text.unwrap_or(to) + text.unwrap_or_else(|| "".to_string()) )); } Node::Heading { |