gitea/modules/avatar
Gusted 96797fed31
Unify hashing for avatar ()
- 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>
..
identicon Implement FSFE REUSE for golang files ()
testdata Improve handling of non-square avatars ()
avatar.go Implement FSFE REUSE for golang files ()
avatar_test.go Implement FSFE REUSE for golang files ()
hash.go Unify hashing for avatar ()