summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-06-03 14:13:58 +0800
committerGitHub <noreply@github.com>2022-06-03 02:13:58 -0400
commite09fb30d34d1bab8ec51afa16745ea2d546f9355 (patch)
tree8a2f9d12ff2808500d6fdbabd841a7e7c1a296cc /models/repo.go
parent0c759fd4dee1c2a82ecdb0a6019d8ee78dae2209 (diff)
downloadgitea-e09fb30d34d1bab8ec51afa16745ea2d546f9355.tar.gz
gitea-e09fb30d34d1bab8ec51afa16745ea2d546f9355.zip
improvement some release related code (#19867)
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index bf70295275..6c3dca41be 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1144,7 +1144,7 @@ func LinkedRepository(a *repo_model.Attachment) (*repo_model.Repository, unit.Ty
}
return repo, unitType, err
} else if a.ReleaseID != 0 {
- rel, err := GetReleaseByID(a.ReleaseID)
+ rel, err := GetReleaseByID(db.DefaultContext, a.ReleaseID)
if err != nil {
return nil, unit.TypeReleases, err
}