1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 02:04:27 +00:00
Andrew Burns 35b02997f8 Fix Gravatar images in web view (like commit listing)
Related to #700

In the original bug report it was referencing only the sytem avatar images for setup users (like in the header); however the problem also persists with things like commit history.

This commit fixes the `tool.AvatarLink` function so that it also uses the already existing `avatar.HashEmail` function.

I also refactored the `tool.AvatarLink` method some to make the control flow more apparent and adhere better to DRY (there were multiple calls to the `EncodeMd5` function that the `HashEmail` function call replaced, now there is only one.)
2014-12-05 11:02:59 -07:00
..
2014-09-07 20:04:47 -04:00
2014-11-21 12:51:36 -05:00
2014-11-30 18:35:05 -05:00
2014-10-11 18:20:07 -04:00
2014-11-18 15:13:08 -05:00
2014-09-07 20:11:13 -04:00
2014-09-07 20:11:13 -04:00
2014-10-31 21:52:03 -04:00
2014-11-24 18:47:59 -05:00
2014-07-26 00:24:27 -04:00
2014-11-30 02:26:29 -05:00
2014-11-28 21:38:35 -05:00
2014-11-21 12:51:36 -05:00
2014-06-29 16:39:06 -04:00