favicon now usesour own
This commit is contained in:
parent
4a1be90cdf
commit
b6eaada2bf
@ -31,7 +31,7 @@ fn context() -> PageAttrs {
|
|||||||
og_url: "freechat.io",
|
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
|
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_url: "freechat.io",
|
||||||
brand_motto: "Freedom respecting chat platform",
|
brand_motto: "Freedom respecting chat platform",
|
||||||
brand_quip: "Join an instance",
|
brand_quip: "Join an instance",
|
||||||
@ -76,7 +76,7 @@ pub fn static_js(file: String) -> Option<NamedFile> {
|
|||||||
|
|
||||||
|
|
||||||
#[get("/static/media/<file>")]
|
#[get("/static/media/<file>")]
|
||||||
pub fn static_js(file: String) -> Option<NamedFile> {
|
pub fn static_media(file: String) -> Option<NamedFile> {
|
||||||
let mut f = file;
|
let mut f = file;
|
||||||
f = f.replace("..", "");
|
f = f.replace("..", "");
|
||||||
f = f.replace("%2e", "");
|
f = f.replace("%2e", "");
|
||||||
|
Loading…
Reference in New Issue
Block a user