From b6eaada2bf6f0927b17a6ab182daf712ef17d249 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Wed, 27 Nov 2019 23:41:28 -0800 Subject: [PATCH] favicon now usesour own --- server/src/website.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/website.rs b/server/src/website.rs index 53ed1ae..929f165 100644 --- a/server/src/website.rs +++ b/server/src/website.rs @@ -31,7 +31,7 @@ fn context() -> PageAttrs { og_url: "freechat.io", og_image: "https://images.pexels.com/photos/146071/pexels-photo-146071.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",// recall this is meant to be a path to the favicon - favicon: "https://images.pexels.com/photos/146071/pexels-photo-146071.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260", + favicon: "/static/media/favicon.png", brand_url: "freechat.io", brand_motto: "Freedom respecting chat platform", brand_quip: "Join an instance", @@ -76,7 +76,7 @@ pub fn static_js(file: String) -> Option { #[get("/static/media/")] -pub fn static_js(file: String) -> Option { +pub fn static_media(file: String) -> Option { let mut f = file; f = f.replace("..", ""); f = f.replace("%2e", "");