diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-07-26 18:20:38 -0700 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-07-27 09:20:38 +0800 |
commit | a27863b6d15026cf36b164707331fd59ffb68931 (patch) | |
tree | 82bd393e796d4330213599b492b40b0100288c8a /models/issue_comment.go | |
parent | 5f37944dff7f8e48b3c5ce27bd1b77907b71f092 (diff) | |
download | gitea-a27863b6d15026cf36b164707331fd59ffb68931.tar.gz gitea-a27863b6d15026cf36b164707331fd59ffb68931.zip |
Fix issue updated_unix bug (#2204)
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r-- | models/issue_comment.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index 326676ecfc..753e79b3d3 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -399,7 +399,11 @@ func createComment(e *xorm.Session, opts *CreateCommentOptions) (_ *Comment, err if err != nil { return nil, err } + } + // update the issue's updated_unix column + if err = updateIssueCols(e, opts.Issue); err != nil { + return nil, err } // Notify watchers for whatever action comes in, ignore if no action type. |