diff --git a/src/routes/posts.rs b/src/routes/posts.rs index 02ed8bcf..43bff378 100644 --- a/src/routes/posts.rs +++ b/src/routes/posts.rs @@ -42,7 +42,7 @@ fn details_response(blog: String, slug: String, conn: DbConn, user: Option Template::render("posts/details", json!({ "author": post.get_authors(&*conn)[0].to_json(&*conn), "article": post.to_json(&*conn), - "blog": blog, + "blog": blog.to_json(&*conn), "comments": &comments.into_iter().filter_map(|c| if c.in_response_to_id.is_none() { Some(c.to_json(&*conn, &comms)) } else {