Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-27 12:16:10 +01:00
forgejo/modules/avatar
Gusted 96797fed31
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>
2023-01-02 22:46:39 +01:00
..
identicon Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
testdata Improve handling of non-square avatars (#7025) 2019-05-25 14:46:14 +03:00
avatar.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
avatar_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
hash.go Unify hashing for avatar (#22289) 2023-01-02 22:46:39 +01:00