forked from gitea/gitea

fix #26427 related https://github.com/go-gitea/gitea/pull/25258 --- Before:  --- After: 