aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-07-26 18:20:38 -0700
committerLunny Xiao <xiaolunwen@gmail.com>2017-07-27 09:20:38 +0800
commita27863b6d15026cf36b164707331fd59ffb68931 (patch)
tree82bd393e796d4330213599b492b40b0100288c8a /models/issue_comment.go
parent5f37944dff7f8e48b3c5ce27bd1b77907b71f092 (diff)
downloadgitea-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.go4
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.