diff options
author | Jimmy Praet <jimmy.praet@telenet.be> | 2024-02-25 07:00:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-25 06:00:55 +0000 |
commit | 2e33671f2c1e98759e4fd2a90944c534cfdf5776 (patch) | |
tree | f8d1343d2ecbdf9b0bd8ed5cd7f1a48eeb33a1af /routers/web/repo/issue.go | |
parent | 1ef87773b1e75b99b4b842303542fd17d9c2e6f7 (diff) | |
download | gitea-2e33671f2c1e98759e4fd2a90944c534cfdf5776.tar.gz gitea-2e33671f2c1e98759e4fd2a90944c534cfdf5776.zip |
Add attachment support for code review comments (#29220)
Fixes #27960, #24411, #12183
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/web/repo/issue.go')
-rw-r--r-- | routers/web/repo/issue.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 245ed2b2f2..46d48c4638 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -1718,6 +1718,10 @@ func ViewIssue(ctx *context.Context) { for _, codeComments := range comment.Review.CodeComments { for _, lineComments := range codeComments { for _, c := range lineComments { + if err := c.LoadAttachments(ctx); err != nil { + ctx.ServerError("LoadAttachments", err) + return + } // Check tag. role, ok = marked[c.PosterID] if ok { |