mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Comments list performance optimization (#5305)
This commit is contained in:
committed by
techknowlogick
parent
2262811e40
commit
dd1acd7ce4
@@ -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
|
||||
|
Reference in New Issue
Block a user