This has recently regressed it seems. Put it back into same position as https://github.com/go-gitea/gitea/pull/24345.