diff options
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r-- | models/issue_comment.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index 47246701a0..53a667f825 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -356,7 +356,9 @@ func GetCommentByID(id int64) (*Comment, error) { func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, error) { comments := make([]*Comment, 0, 10) - sess := e.Where("issue_id = ?", issueID).Asc("created_unix") + sess := e. + Where("issue_id = ?", issueID). + Asc("created_unix") if since > 0 { sess.And("updated_unix >= ?", since) } |