Add bold markdown to the Rust blog message
All checks were successful
Build and push container image / build (push) Successful in 15m32s

This commit is contained in:
toast 2024-07-27 23:44:17 -04:00
parent 003d17a15f
commit 3700fe34f0

View File

@ -260,7 +260,7 @@ async fn rust_message() -> Result<Option<String>, Error> {
return Ok(None);
} else {
save_to_redis(&rkey, &blog).await?;
Ok(Some(format!("Rust Team has put out a new article!\n[{}](<{}>)", article.links[0].title.clone().unwrap(), article.links[0].href)))
Ok(Some(format!("Rust Team has put out a new article!\n**[{}](<{}>)**", article.links[0].title.clone().unwrap(), article.links[0].href)))
}
} else {
task_err("RSS:RustBlog", &format!("Article URL does not match the expected RegEx pattern! ({})", article_id));