Our unix user running gitea has a GPG key and git/gitea are configured to sign certain CRUD actions.
This works great, but… The commits have an avatar and we can’t figure out how to change it.
Thanks, but, unfortunately that doesn’t help.
Avatars work just fine, users can and do already upload their own.
The “user” that the system signs as isn’t an actual user though, so has no login or settings to change to upload an avatar with.
I’ve dug through the code a little, and more importantly the templates, and found things.
The SigningUser.ID is 0 because this isn’t a real user, so the avatar is always a hash of the email address in the GPG key, so always redirects to GRAVATAR_SOURCE i.e. gravatar in our case.
It took a long time digging through the code until I noticed the significant difference in the template!
AvatarLink generates an /avatar/hash link, whereas .Verification.SigningUser.RelAvatarLink contains /user/avatar/username/-1