Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995)

(cherry picked from commit f8ab9dafb7a173a35e9308f8f784735b0f822439)

Conflicts:
	routers/web/repo/fork.go
	trivial context conflict, the file does not exist in Forgejo
This commit is contained in:
Lunny Xiao 2024-03-22 20:53:52 +08:00 committed by Earl Warren
parent c97a7b8347
commit 196c8772a8
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
14 changed files with 41 additions and 77 deletions

View file

@ -367,7 +367,7 @@ func Diff(ctx *context.Context) {
ctx.Data["Commit"] = commit
ctx.Data["Diff"] = diff
statuses, _, err := git_model.GetLatestCommitStatus(ctx, ctx.Repo.Repository.ID, commitID, db.ListOptions{ListAll: true})
statuses, _, err := git_model.GetLatestCommitStatus(ctx, ctx.Repo.Repository.ID, commitID, db.ListOptionsAll)
if err != nil {
log.Error("GetLatestCommitStatus: %v", err)
}