fix: correct repo/attatchment absolute url and release layout (#39178)

This commit is contained in:
wxiaoguang authored and GitHub committed 2026-08-31 23:31:17 +00:00
1 parent fc9800b383
commit 4875bb3b2b
21 files changed
+72 -80

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ func ToAPIComment(ctx context.Context, repo *repo_model.Repository, c *issues_mo
IssueURL: c.IssueURL(ctx),
PRURL: c.PRURL(ctx),
Body: c.Content,
Attachments: ToAPIAttachments(repo, c.Attachments),
Attachments: ToAPIAttachments(ctx, repo, c.Attachments),
Created: c.CreatedUnix.AsTime(),
Updated: c.UpdatedUnix.AsTime(),
}