aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-26 14:07:21 -0700
committerUnknwon <u@gogs.io>2016-08-26 14:07:21 -0700
commitbb359a74f124c759a8de1afbf224b658b57760b7 (patch)
treea2bf45fa59e7c5079762996e43155692af2d82ce /models/issue_comment.go
parent6b98d58906e4df063a2af59f97bd74c1c4cc1c84 (diff)
downloadgitea-bb359a74f124c759a8de1afbf224b658b57760b7.tar.gz
gitea-bb359a74f124c759a8de1afbf224b658b57760b7.zip
migrations: set comment updated as created
Diffstat (limited to 'models/issue_comment.go')
-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 c914e0a56f..ccfa765f92 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -358,7 +358,7 @@ func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, erro
comments := make([]*Comment, 0, 10)
sess := e.Where("issue_id = ?", issueID).Asc("created_unix")
if since > 0 {
- sess.And("created_unix >= ?", since)
+ sess.And("updated_unix >= ?", since)
}
return comments, sess.Find(&comments)
}