favicon now usesour own

This commit is contained in:
shockrahwow 2019-11-27 23:41:28 -08:00
parent 4a1be90cdf
commit b6eaada2bf

View File

@ -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<NamedFile> {
#[get("/static/media/<file>")]
pub fn static_js(file: String) -> Option<NamedFile> {
pub fn static_media(file: String) -> Option<NamedFile> {
let mut f = file;
f = f.replace("..", "");
f = f.replace("%2e", "");