# HG changeset patch # User Marcin Kuzminski # Date 2020-06-23 09:46:00 # Node ID f43c166fc3b502c01c0b54be00a9dd28edd55e3f # Parent 11f8a530e6dfda6b15b85d5075c95e11335c3b12 comments: save modification date for main comment on edit. diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py --- a/rhodecode/model/comment.py +++ b/rhodecode/model/comment.py @@ -21,6 +21,7 @@ """ comments model for RhodeCode """ +import datetime import logging import traceback @@ -501,6 +502,8 @@ class CommentsModel(BaseModel): comment = ChangesetComment.get(comment_id) old_comment_text = comment.text comment.text = text + comment.modified_at = datetime.datetime.now() + comment_version = ChangesetCommentHistory.get_version(comment_id) if (comment_version - version) != 1: log.warning(