use big image for OG preview

This commit is contained in:
kageru 2024-04-03 14:06:38 +02:00
parent 9be1dc93de
commit 213b7ed7cd

View File

@ -263,7 +263,7 @@ fn add_data(res: &mut String, pd: &PageData, card_id: Option<usize>) -> AnyResul
.replacen(
"{OG_IMAGE}",
&match card_id {
Some(id) => format!(r#"<meta property="og:image" content="{}/static/thumb/{id}.jpg" />"#, IMG_HOST.as_str()),
Some(id) => format!(r#"<meta property="og:image" content="{}/static/full/{id}.jpg" />"#, IMG_HOST.as_str()),
None => String::new(),
},
1,