mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-27 07:30:15 +00:00
Backport #34094 by @lunny When visit commit list, it would update the user avatar even if id = 0, which was unnecessary operations. This PR returned default avatar for the git only user avatar rendering who's user id is zero. ```log database duration=0.0005s db.sql="UPDATE `user` SET `avatar` = ?, `updated_unix` = ? WHERE `id`=?" database duration=0.0007s db.sql="UPDATE `user` SET `avatar` = ?, `updated_unix` = ? WHERE `id`=?" ... ``` Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> |
||
|---|---|---|
| .. | ||
| avatar_test.go | ||
| avatar.go | ||
| badge.go | ||
| block.go | ||
| email_address_test.go | ||
| email_address.go | ||
| error.go | ||
| external_login_user.go | ||
| follow_test.go | ||
| follow.go | ||
| list.go | ||
| main_test.go | ||
| must_change_password.go | ||
| openid_test.go | ||
| openid.go | ||
| redirect_test.go | ||
| redirect.go | ||
| search.go | ||
| setting_keys.go | ||
| setting_test.go | ||
| setting.go | ||
| user_system_test.go | ||
| user_system.go | ||
| user_test.go | ||
| user_update.go | ||
| user.go | ||