Actually redirect when writing a new comment

This commit is contained in:
Bat
2018-05-10 14:58:17 +01:00
parent 80964b1857
commit 56f4a598e2
3 changed files with 7 additions and 6 deletions
+1
View File
@@ -27,6 +27,7 @@ fn details(blog: String, slug: String, conn: DbConn) -> Template {
"blog": blog,
"comments": comments.into_iter().map(|c| {
json!({
"id": c.id,
"content": c.content,
"author": c.get_author(&*conn)
})