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:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user