mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-01-10 21:25:25 +00:00
Fix a bug on article page
This commit is contained in:
parent
b42030e831
commit
d4a8808f00
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ fn details_response(blog: String, slug: String, conn: DbConn, user: Option<User>
|
|||
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 {
|
||||
|
|
Loading…
Reference in a new issue