comments: save modification date for main comment on edit.

This commit is contained in:
Marcin Kuzminski 2020-06-23 11:46:00 +02:00
parent c614a4b09d
commit 29356473c4

View file

@ -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(