~vpzom/hitide

d4c07fe2134ba53db4e71738b8a039455b730a9d — Colin Reeder 10 days ago 5fb9f7d
Adapt to renamed field in post API
2 files changed, 2 insertions(+), 2 deletions(-)

M src/resp_types.rs
M src/routes/posts.rs
M src/resp_types.rs => src/resp_types.rs +1 -1
@@ 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>,
}


M src/routes/posts.rs => src/routes/posts.rs +1 -1
@@ 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} />
                            }