diff --git a/src/utils.rs b/src/utils.rs index 7379bee..23ca2e1 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -124,7 +124,7 @@ pub fn param(path: &str, value: &str) -> String { // Direct urls to proxy if proxy is enabled pub fn format_url(url: String) -> String { - if url.is_empty() || url == "self" || url == "default" { + if url.is_empty() || url == "self" || url == "default" || url == "nsfw" { String::new() } else { format!("/proxy/{}", encode(url).as_str())