diff options
author | Unknwon <u@gogs.io> | 2016-08-26 14:07:21 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-26 14:07:21 -0700 |
commit | bb359a74f124c759a8de1afbf224b658b57760b7 (patch) | |
tree | a2bf45fa59e7c5079762996e43155692af2d82ce /models/issue_comment.go | |
parent | 6b98d58906e4df063a2af59f97bd74c1c4cc1c84 (diff) | |
download | gitea-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.go | 2 |
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) } |