mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
fix typo
This commit is contained in:
+3
-3
@@ -8,12 +8,12 @@ import (
|
|||||||
const gravatarUrlFormat = "https://www.gravatar.com/avatar/%s"
|
const gravatarUrlFormat = "https://www.gravatar.com/avatar/%s"
|
||||||
|
|
||||||
// GetInternalAvatarUrl returns the internal avatar url
|
// GetInternalAvatarUrl returns the internal avatar url
|
||||||
func GetInternalAvatarUrl(uid int64, avatarFileExtesion string, webRootUrl string) string {
|
func GetInternalAvatarUrl(uid int64, avatarFileExtension string, webRootUrl string) string {
|
||||||
if avatarFileExtesion == "" {
|
if avatarFileExtension == "" {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt.Sprintf("%savatar/%d.%s", webRootUrl, uid, avatarFileExtesion)
|
return fmt.Sprintf("%savatar/%d.%s", webRootUrl, uid, avatarFileExtension)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetGravatarUrl returns the Gravatar url according to the specified user email address
|
// GetGravatarUrl returns the Gravatar url according to the specified user email address
|
||||||
|
|||||||
Reference in New Issue
Block a user