diff options
author | Earl Warren <earl-warren@noreply.codeberg.org> | 2025-01-17 02:58:00 +0100 |
---|---|---|
committer | Earl Warren <earl-warren@noreply.codeberg.org> | 2025-01-17 02:58:00 +0100 |
commit | 387f590d9cba132f46680dc4db6f052fad8f063f (patch) | |
tree | afae910c0a04093169853e05c6f43aeff5cc2b2c /models | |
parent | Remove source branch from pr list, fix #5009, #6080 (#6522) (diff) | |
parent | chore(performance): loadCommentsByType sets Issues (diff) | |
download | forgejo-387f590d9cba132f46680dc4db6f052fad8f063f.tar.xz forgejo-387f590d9cba132f46680dc4db6f052fad8f063f.zip |
[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>
Diffstat (limited to 'models')
-rw-r--r-- | models/issues/issue.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/issues/issue.go b/models/issues/issue.go index fbbc4828a2..1e969790d7 100644 --- a/models/issues/issue.go +++ b/models/issues/issue.go @@ -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 } |