Update crates and optimize parameters

This commit is contained in:
spikecodes 2021-11-14 18:51:36 -08:00
parent 0f7ba3c61d
commit 34ea679519
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
6 changed files with 27 additions and 27 deletions

View file

@ -248,7 +248,7 @@ pub async fn wiki(req: Request<Body>) -> Result<Response<Body>, String> {
wiki: rewrite_urls(response["data"]["content_html"].as_str().unwrap_or("<h3>Wiki not found</h3>")),
page,
prefs: Preferences::new(req),
url: url,
url,
}),
Err(msg) => {
if msg == "quarantined" {
@ -286,7 +286,7 @@ pub async fn sidebar(req: Request<Body>) -> Result<Response<Body>, String> {
sub,
page: "Sidebar".to_string(),
prefs: Preferences::new(req),
url: url,
url,
}),
Err(msg) => {
if msg == "quarantined" {