From dd1acd7ce4b4afc5d1c803f85767def242a899bb Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 18 Apr 2019 13:00:03 +0800 Subject: Comments list performance optimization (#5305) --- models/issue.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'models/issue.go') diff --git a/models/issue.go b/models/issue.go index 753345d38f..ddc7fa24af 100644 --- a/models/issue.go +++ b/models/issue.go @@ -272,6 +272,10 @@ func (issue *Issue) loadAttributes(e Engine) (err error) { if err = issue.loadComments(e); err != nil { return err } + + if err = CommentList(issue.Comments).loadAttributes(e); err != nil { + return err + } if issue.isTimetrackerEnabled(e) { if err = issue.loadTotalTimes(e); err != nil { return err -- cgit v1.2.3