diff --git a/radicle-httpd/src/api/v1/projects.rs b/radicle-httpd/src/api/v1/projects.rs index f81410176..7de08df18 100644 --- a/radicle-httpd/src/api/v1/projects.rs +++ b/radicle-httpd/src/api/v1/projects.rs @@ -395,10 +395,10 @@ impl<'a> FromIterator<(&'a CommentId, &'a thread::Comment)> for Comments { for (comment_id, comment) in iter { comments.push(Comment { author: Author { id: comment_id.1 }, - body: comment.body.to_owned(), + body: comment.body().to_owned(), reactions: [], - timestamp: comment.timestamp, - reply_to: comment.reply_to, + timestamp: comment.timestamp(), + reply_to: comment.reply_to(), }); }