mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-05 06:00:31 +00:00
Bugfix - Only update the modified time on the comment if its not mark as read
This commit is contained in:
parent
d31513d7b9
commit
897fa78e89
@ -1355,8 +1355,8 @@ impl Perform for EditComment {
|
|||||||
creator_id: self.creator_id,
|
creator_id: self.creator_id,
|
||||||
removed: self.removed.to_owned(),
|
removed: self.removed.to_owned(),
|
||||||
read: self.read.to_owned(),
|
read: self.read.to_owned(),
|
||||||
updated: Some(naive_now())
|
updated: if self.read.is_some() { None } else {Some(naive_now())}
|
||||||
};
|
};
|
||||||
|
|
||||||
let _updated_comment = match Comment::update(&conn, self.edit_id, &comment_form) {
|
let _updated_comment = match Comment::update(&conn, self.edit_id, &comment_form) {
|
||||||
Ok(comment) => comment,
|
Ok(comment) => comment,
|
||||||
|
Loading…
Reference in New Issue
Block a user