diff options
author | Gusted <postmaster@gusted.xyz> | 2023-01-02 22:46:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 22:46:39 +0100 |
commit | 96797fed311151ff889f87c94c7b6aaa16c5d535 (patch) | |
tree | 30892e553fa197e8205b9d1ddad82aef3e707caa /cmd/dump_repo.go | |
parent | fcd6ceef2b76aabd6a8ffab688492cc7f69269bf (diff) | |
download | gitea-96797fed311151ff889f87c94c7b6aaa16c5d535.tar.gz gitea-96797fed311151ff889f87c94c7b6aaa16c5d535.zip |
Unify hashing for avatar (#22289)
- Unify the hashing code for repository and user avatars into a
function.
- Use a sane hash function instead of MD5.
- Only require hashing once instead of twice(w.r.t. hashing for user
avatar).
- Improve the comment for the hashing code of why it works.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Yarden Shoham <hrsi88@gmail.com>
Diffstat (limited to 'cmd/dump_repo.go')
0 files changed, 0 insertions, 0 deletions