mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08: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