summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-06-21 09:00:44 +0800
committerGitHub <noreply@github.com>2017-06-21 09:00:44 +0800
commitd71fad2ab7afc5d1bfa17842b1a66c9d1d274167 (patch)
tree3329afa9684d6bdc2f852743f7b2f85e931f51ec /models/issue.go
parent0a5dc640a12d1c0475052b73a721056b53460275 (diff)
downloadgitea-d71fad2ab7afc5d1bfa17842b1a66c9d1d274167.tar.gz
gitea-d71fad2ab7afc5d1bfa17842b1a66c9d1d274167.zip
Fix #2001 and fix issue comments hidden (#2016)
* revert #2001 and fix issue comments hidden * fix #2001 * fix import * improve comment type * reduce unnecessary join * fix comment on FindCommentsOptions
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go
index b5553b7c82..0989e3e195 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -174,7 +174,10 @@ func (issue *Issue) loadAttributes(e Engine) (err error) {
}
if issue.Comments == nil {
- issue.Comments, err = getCommentsByIssueID(e, issue.ID)
+ issue.Comments, err = findComments(e, FindCommentsOptions{
+ IssueID: issue.ID,
+ Type: CommentTypeUnknown,
+ })
if err != nil {
return fmt.Errorf("getCommentsByIssueID [%d]: %v", issue.ID, err)
}