From d4a8808f00ba3ad3865e0eedc95293ef9afeb5e8 Mon Sep 17 00:00:00 2001 From: Bat Date: Thu, 26 Jul 2018 19:08:18 +0200 Subject: [PATCH] Fix a bug on article page --- src/routes/posts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {