Bugfix - Only update the modified time on the comment if its not mark as read

This commit is contained in:
Dessalines 2019-04-24 10:11:55 -07:00
parent b8a9da32f0
commit 73c409fd0f

View file

@ -1355,7 +1355,7 @@ impl Perform for EditComment {
creator_id: self.creator_id,
removed: self.removed.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) {