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 panic for `fixBrokenRepoUnits16961` (#30068)

![image](https://github.com/go-gitea/gitea/assets/18380374/508b3ceb-f53d-4d3b-a781-97c1542af1cb)

(cherry picked from commit 08aec2c20adae8e6f04cac08566a8decd818e5cd)

authored by

yp05327 and committed by
Earl Warren
eb696438 faffda01

+6
+6
services/doctor/fix16961.go
··· 216 216 return false, nil 217 217 } 218 218 219 + var cfg any 220 + err = json.UnmarshalHandleDoubleEncode(bs, &cfg) 221 + if err == nil { 222 + return false, nil 223 + } 224 + 219 225 switch repoUnit.Type { 220 226 case unit.TypeCode, unit.TypeReleases, unit.TypeWiki, unit.TypeProjects: 221 227 cfg := &repo_model.UnitConfig{}