f29c52a169
Backport #24823 by @sonjek Should resolve first point of the issue https://github.com/go-gitea/gitea/issues/24574 Co-authored-by: Yevhen Pavlov <yevhen.pavlov.ua@gmail.com>