-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad MD5 filename for non-default avatars #23041
Comments
Maybe you want to get your custom avatar by accessing |
Exactly, the current user avatar should always be available at The default avatar is saved to the correct file name, a custom avatar is not. Setting the default avatar will actually change the value in An easy fix in CustomAvatarRelativePath would be to just throw away what's saved in This will of course break references to existing custom avatars which are already saved to a misnamed files… |
Gitea's avatar service is not de designed to be a service like Gravatar. The hash filename only used to distinguish between different files. |
It's a fairly interesting idea for Gitea to implement/replicate Gravatar's funcitonality and I don't believe that it would be too difficult to do this - but yes I don't believe that it is a bug that Gitea does not implement this. @astos-marcb you could open a feature request but you'd need to link to the specs for it. |
In a way Gitea does already implement/provide it (supply an avatar picture at URL A quick-and-dirty and incomplete solution would be to forgo content checking and always save the avatar file as Ideally, logic used for repository avatar filenames ( A possible middle ground (and easy to debug solution) would employ:
For migrating user-supplied avatars the transformed name can be just |
Hm, there are already done some changes to unify avatar naming for |
Description
The avatar picture endpoint always returns the
default
picture.See difference to actual profile picture for account
Path for the
non-default
picture resolves to the file content hashmd5(<id>-<md5(content)>)
(as saved in u.Avatar) instead of the standardizedmd5(email)
.Gitea Version
1.18.4
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
2.36.5
Operating System
Alpine Linux
How are you running Gitea?
docker, verified on https://try.gitea.io/
Database
SQLite
The text was updated successfully, but these errors were encountered: