aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 57d4973..dd2bd34 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -26,20 +26,23 @@ extern crate rocket;
#[get("/")]
async fn home(clients: &State<Clients>) -> Template {
- let (live, listenbrainz, skweets) = tokio::join!(
+ let (live, listenbrainz, skweets, blogposts) = tokio::join!(
live::get_live_status(&clients.reqwest),
scrobbles::get_now_playing(&clients.listenbrainz),
- skweets::get_recents(&clients.skinnyverse)
+ skweets::get_recents(&clients.skinnyverse),
+ posts::get_blogposts()
);
let is_live = live.unwrap_or_default().online;
let listenbrainz = listenbrainz.unwrap_or_default();
let skweets = skweets.unwrap_or_default();
+ let blogposts = blogposts.unwrap_or_default();
Template::render(
"home",
context! {
- is_live,
- listenbrainz,
- skweets,
+ is_live,
+ listenbrainz,
+ skweets,
+ blogposts,
},
)
}