1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-16 07:18:37 +00:00

migrations: set comment updated as created

This commit is contained in:
Unknwon
2016-08-26 14:07:21 -07:00
parent 6b98d58906
commit bb359a74f1
6 changed files with 25 additions and 4 deletions

View File

@@ -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)
}