diff options
Diffstat (limited to 'internal/tool/tool.go')
-rw-r--r-- | internal/tool/tool.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/tool/tool.go b/internal/tool/tool.go index d2110919..9dc7e104 100644 --- a/internal/tool/tool.go +++ b/internal/tool/tool.go @@ -143,10 +143,10 @@ func AvatarLink(email string) (url string) { log.Warn("AvatarLink.LibravatarService.FromEmail [%s]: %v", email, err) } } - if len(url) == 0 && !conf.Picture.DisableGravatar { + if url == "" && !conf.Picture.DisableGravatar { url = conf.Picture.GravatarSource + HashEmail(email) + "?d=identicon" } - if len(url) == 0 { + if url == "" { url = conf.Server.Subpath + "/img/avatar_default.png" } return url |