From 2b0193f5ea33e105f01dea558a28ce102fc116c2 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Tue, 5 Jan 2021 08:15:34 -0800 Subject: [PATCH] Fix proxying of NSFW images --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())