From: Dessalines Date: Wed, 24 Apr 2019 17:11:55 +0000 (-0700) Subject: Bugfix - Only update the modified time on the comment if its not mark as read X-Git-Url: http://these/git/%7B%27/docs/static/%7B%60%24%7BghostArchiveUrl%7D/search?a=commitdiff_plain;h=73c409fd0ffd05aea7e45eda80a8963ab292f37c;p=lemmy.git Bugfix - Only update the modified time on the comment if its not mark as read --- diff --git a/server/src/websocket_server/server.rs b/server/src/websocket_server/server.rs index d7b93416..84536c53 100644 --- a/server/src/websocket_server/server.rs +++ b/server/src/websocket_server/server.rs @@ -1355,8 +1355,8 @@ 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) { Ok(comment) => comment,