- Backport of https://github.com/go-gitea/gitea/pull/30225 (cherry picked from commit 36f4732e6a)
36f4732e6a