loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix 404 when there is an internal version of package (#27615)

close #27601
The Docker registry has an internal version, which leads to 404

authored by

Nanguan Lin and committed by
GitHub
7480aacd 4f6043f5

+1 -1
+1 -1
routers/web/user/package.go
··· 449 449 450 450 redirectURL := ctx.Package.Owner.HomeLink() + "/-/packages" 451 451 // redirect to the package if there are still versions available 452 - if has, _ := packages_model.ExistVersion(ctx, &packages_model.PackageSearchOptions{PackageID: ctx.Package.Descriptor.Package.ID}); has { 452 + if has, _ := packages_model.ExistVersion(ctx, &packages_model.PackageSearchOptions{PackageID: ctx.Package.Descriptor.Package.ID, IsInternal: util.OptionalBoolFalse}); has { 453 453 redirectURL = ctx.Package.Descriptor.PackageWebLink() 454 454 } 455 455