Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
cob: Create proper `OpId` type
Alexis Sellier committed 3 years ago
commit 134bb7a847e3afcadf339bad521346c657d57c85
parent a93803c8ca169cbc986ffa9eac8c83aa07df51db
1 file changed +4 -2
modified radicle-httpd/src/api/v1/projects.rs
@@ -423,9 +423,11 @@ impl<'a> FromIterator<(&'a CommentId, &'a thread::Comment)> for Comments {
    fn from_iter<I: IntoIterator<Item = (&'a CommentId, &'a thread::Comment)>>(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(),