From d4c07fe2134ba53db4e71738b8a039455b730a9d Mon Sep 17 00:00:00 2001 From: Colin Reeder Date: Thu, 15 Oct 2020 15:11:28 -0600 Subject: Adapt to renamed field in post API --- src/resp_types.rs | 2 +- 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>, + pub replies: Vec>, pub your_vote: Option, } 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( }
    { - post.comments.iter().map(|comment| { + post.replies.iter().map(|comment| { render::rsx! { } -- cgit v1.2.3