Fix proxying of NSFW images
This commit is contained in:
parent
2185d895c0
commit
2b0193f5ea
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue