Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
cob: Implement comment edit action
Alexis Sellier committed 3 years ago
commit 10d450c751d64d2c1b89ff5ab0bdf778a1aa6a55
parent 3d9489373701dd5977e5a5a6cf701e11820d6678
1 file changed +3 -3
modified 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(),
            });
        }