Hide full name from public view on repository contributions

For context: I am a trans woman. I have just finished setting up and deploying my own Gitea instance.

However, there is a misconfiguration that bugs me: my dead name shows up, exposed to visitors, on top of the contributors page.

This alone puts me in discomfort; moreover, it may be grounds for invasion of privacy and doxxing.

What I already did is disabling showing e-mails, replaced with fake e-mail addresses with suffix “(at) whatever.invalid”

Is there a way to hide full name, replacing it with only the username if an account with that email exists on my instance?

Would it be easier to just edit your name in your profile and make it the name that you use now? Does that not update the name shown in the top contributors page?

I checked the whole thing. In fact, any place on Gitea shows the display name I set instead.

Just the “last change made by” bar shows real name (see attachment, redacted for privacy ofc), probably sourced from repository.

If those values are pulled from the repo data, you may need to rebase every affected project. That will change SHA hashes of your commits.

I know that contact information can be pulled from repository data. (I’ll manage it later when I have time).

What makes me uncomfortable now, is that information being in plain sight to every visitor.

What I tried doing now, was modifying templates/repo/latest_commit.tmpl. Saved it into $GITEA_CUSTOM/templates/custom/repo/latest_commit.tmpl (namely GITEA_CUSTOM=/var/lib/gitea/custom but I do not remember setting it). Restarted multiple times, both in prod and dev environment.

Changes seem to be not been applied yet :upside_down_face: