Refs: https://codeberg.org/forgejo/forgejo/pulls/1595 (cherry picked from commit 35b962e631)
35b962e631