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.

doctor: delete action entries without existing user (#27292)

just extend doctor with a usefully check :)

Co-authored-by: techknowlogick <techknowlogick@gitea.com>

authored by

6543
techknowlogick
and committed by
GitHub
15fa0383 98f02203

+3
+3
modules/doctor/dbconsistency.go
··· 189 189 // find action without repository 190 190 genericOrphanCheck("Action entries without existing repository", 191 191 "action", "repository", "action.repo_id=repository.id"), 192 + // find action without user 193 + genericOrphanCheck("Action entries without existing user", 194 + "action", "user", "action.act_user_id=`user`.id"), 192 195 // find OAuth2Grant without existing user 193 196 genericOrphanCheck("Orphaned OAuth2Grant without existing User", 194 197 "oauth2_grant", "user", "oauth2_grant.user_id=`user`.id"),