summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkolaente <konrad@kola-entertainments.de>2018-04-29 06:48:14 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2018-04-29 12:48:14 +0800
commitfd8d6405c8c7c12594f3d5866ac9eafb7edb8711 (patch)
tree69b5f734c2339da6af393ed8b0c2cb5eaa8a2ec6
parentc3f2b8803f592ac84621dd8bd34751981148e442 (diff)
downloadgitea-fd8d6405c8c7c12594f3d5866ac9eafb7edb8711.tar.gz
gitea-fd8d6405c8c7c12594f3d5866ac9eafb7edb8711.zip
Fix only updated_unix when adding a comment (#3855)
-rw-r--r--models/issue_comment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index f97c108a7f..ea83c356ee 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -418,7 +418,7 @@ func createComment(e *xorm.Session, opts *CreateCommentOptions) (_ *Comment, err
}
// update the issue's updated_unix column
- if err = updateIssueCols(e, opts.Issue); err != nil {
+ if err = updateIssueCols(e, opts.Issue, "updated_unix"); err != nil {
return nil, err
}