diff options
-rw-r--r-- | src/resp_types.rs | 2 | ||||
-rw-r--r-- | src/routes/posts.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/resp_types.rs b/src/resp_types.rs index ec5673e..c8e715e 100644 --- a/src/resp_types.rs +++ b/src/resp_types.rs @@ -113,7 +113,7 @@ pub struct RespPostInfo<'a> { pub approved: bool, pub score: i64, #[serde(borrow)] - pub comments: Vec<RespPostCommentInfo<'a>>, + pub replies: Vec<RespPostCommentInfo<'a>>, pub your_vote: Option<Empty>, } diff --git a/src/routes/posts.rs b/src/routes/posts.rs index ae9ccbf..c2d9f3b 100644 --- a/src/routes/posts.rs +++ b/src/routes/posts.rs @@ -196,7 +196,7 @@ async fn page_post_inner( } <ul class={"commentList topLevel"}> { - post.comments.iter().map(|comment| { + post.replies.iter().map(|comment| { render::rsx! { <Comment comment={comment} base_data={&base_data} lang={&lang} /> } |