mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-01 01:30:46 +08:00
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 <alexis@radicle.xyz>
This commit is contained in:
@@ -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(),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user