]> source.dussan.org Git - gitea.git/commit
Fix Gravatar images in web view (like commit listing)
authorAndrew Burns <ErebusBat@gmail.com>
Fri, 5 Dec 2014 18:02:59 +0000 (11:02 -0700)
committerAndrew Burns <ErebusBat@gmail.com>
Fri, 5 Dec 2014 18:02:59 +0000 (11:02 -0700)
commit35b02997f8599c8e260b70bc5b3239b0109c05cf
tree9b3d691af9b480f13af4485111a6583e5ec85333
parentadc1ac689efb23c6de2a22b0d6226d02b1641222
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.)
modules/base/tool.go