From f00ef594043ca55fa6a835e9316d5cb63e649872 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Mon, 28 Dec 2020 20:49:15 -0800 Subject: [PATCH] Fix proxy-less deployment --- src/proxy.rs | 1 + templates/base.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/proxy.rs b/src/proxy.rs index b2e1292..8ba015f 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -5,6 +5,7 @@ use base64::decode; pub async fn handler(web::Path(url): web::Path) -> Result { if cfg!(feature = "proxy") { + #[cfg(feature = "proxy")] let media: String; #[cfg(not(feature = "proxy"))] diff --git a/templates/base.html b/templates/base.html index 804ec71..d282ec8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,8 @@ {% block head %} {% block title %}Libreddit{% endblock %} - +