diff --git a/src/routes/blogs.rs b/src/routes/blogs.rs index 39df22a0..662687fe 100644 --- a/src/routes/blogs.rs +++ b/src/routes/blogs.rs @@ -28,7 +28,7 @@ fn paginated_details(name: String, conn: DbConn, user: Option, page: Page) let authors = &blog.list_authors(&*conn); Template::render("blogs/details", json!({ - "blog": &blog, + "blog": &blog.to_json(&*conn), "account": user, "is_author": user.map(|x| x.is_author_in(&*conn, blog.clone())), "posts": posts.into_iter().map(|p| p.to_json(&*conn)).collect::>(),