fix: render only specified gists, if specification is provided

This commit is contained in:
realaravinth
2022-01-16 14:14:58 +05:30
parent df14f8b0b8
commit 574d14714d
3 changed files with 56 additions and 20 deletions

View File

@ -185,8 +185,7 @@ async fn page(path: web::Path<(String, String)>, data: AppData) -> impl Responde
.unwrap()
.href;
if src.contains("gist.github.com") {
let gist_id = post_data.get_gist_id(src);
let fut = data.get_gist(gist_id.to_owned());
let fut = data.get_gist(src.to_owned());
futs.push(fut);
}
}