diff --git a/radicle-httpd/src/api/v1/projects.rs b/radicle-httpd/src/api/v1/projects.rs index 0518e62a2..1e7de595d 100644 --- a/radicle-httpd/src/api/v1/projects.rs +++ b/radicle-httpd/src/api/v1/projects.rs @@ -423,9 +423,11 @@ impl<'a> FromIterator<(&'a CommentId, &'a thread::Comment)> for Comments { fn from_iter>(iter: I) -> Self { let mut comments = Vec::new(); - for (comment_id, comment) in iter { + for (_, comment) in iter { comments.push(Comment { - author: Author { id: comment_id.1 }, + author: Author { + id: comment.author(), + }, body: comment.body().to_owned(), reactions: [], timestamp: comment.timestamp(),