Co-authored-by: 6543 <6543@obermui.de> (cherry picked from commit 0d08bb6112884411eb4f58b056278d3c824a8fc0)
Refs: https://codeberg.org/forgejo/forgejo/pulls/2679#issuecomment-1720941