[gitea] week 2025-03 cherry pick (gitea/main -> forgejo) (#6539)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6539
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
Earl Warren 2025-01-17 01:58:00 +00:00
commit 387f590d9c
5 changed files with 22 additions and 8 deletions

View file

@ -268,6 +268,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
}