1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 02:08:36 +00:00

Some small refactors (#33144)

This commit is contained in:
Lunny Xiao
2025-01-09 22:00:06 -08:00
committed by GitHub
parent e5f3c16587
commit d3083d2198
5 changed files with 92 additions and 48 deletions

View File

@@ -238,6 +238,9 @@ func (issue *Issue) loadCommentsByType(ctx context.Context, tp CommentType) (err
IssueID: issue.ID,
Type: tp,
})
for _, comment := range issue.Comments {
comment.Issue = issue
}
return err
}