From 10d450c751d64d2c1b89ff5ab0bdf778a1aa6a55 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Thu, 15 Dec 2022 09:43:48 +0100 Subject: [PATCH] cob: Implement comment edit action This implementation intentionally preserves all edits such that they may be displayed in an application as an edit history. Signed-off-by: Alexis Sellier --- radicle-httpd/src/api/v1/projects.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(), }); }