1
0
Fork 0
forked from forgejo/forgejo

Fix missed doer (#30231)

Fix #29879

Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit 908426aa0fcc58961c345994f0f66056f6cf5f48)
This commit is contained in:
Lunny Xiao 2024-04-09 05:26:41 +08:00 committed by Gergely Nagy
parent 84abf4bd91
commit f544bb25b5
No known key found for this signature in database
11 changed files with 55 additions and 55 deletions

View file

@ -108,7 +108,7 @@ func ListIssueAttachments(ctx *context.APIContext) {
return
}
ctx.JSON(http.StatusOK, convert.ToAPIIssue(ctx, issue).Attachments)
ctx.JSON(http.StatusOK, convert.ToAPIIssue(ctx, ctx.Doer, issue).Attachments)
}
// CreateIssueAttachment creates an attachment and saves the given file