mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
parent
84cbb6c4d2
commit
42718d32af
@ -418,8 +418,9 @@ func RedirectDownload(ctx *context.Context) {
|
|||||||
tagNames := []string{vTag}
|
tagNames := []string{vTag}
|
||||||
curRepo := ctx.Repo.Repository
|
curRepo := ctx.Repo.Repository
|
||||||
releases, err := db.Find[repo_model.Release](ctx, repo_model.FindReleasesOptions{
|
releases, err := db.Find[repo_model.Release](ctx, repo_model.FindReleasesOptions{
|
||||||
RepoID: curRepo.ID,
|
IncludeDrafts: ctx.Repo.CanWrite(unit.TypeReleases),
|
||||||
TagNames: tagNames,
|
RepoID: curRepo.ID,
|
||||||
|
TagNames: tagNames,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.ServerError("RedirectDownload", err)
|
ctx.ServerError("RedirectDownload", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user