Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4572 Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
Backport #30878 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit ad5a8d043c6818c0c496ebae2f5ea9373219bcd6)