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
@@ -29,6 +29,6 @@ func ToAPIRelease(ctx context.Context, repo *repo_model.Repository, r *repo_mode
CreatedAt: r.CreatedUnix.AsTime(),
PublishedAt: util.Iif(r.IsDraft, nil, r.PublishedUnix.AsTimePtr()),
Publisher: ToUser(ctx, r.Publisher, nil),
Attachments: ToAPIAttachments(repo, r.Attachments),
Attachments: ToAPIAttachments(ctx, repo, r.Attachments),
}
}