More merging...

This commit is contained in:
LEGOlord208 2017-07-23 08:41:32 +02:00
parent 4edc63dabf
commit 1d514dbfd1
No known key found for this signature in database
GPG key ID: 3A818BC1F5617A24

13
user.go
View file

@ -37,16 +37,3 @@ func (u *User) AvatarURL(size string) string {
return URL + "?size=" + size
}
// AvatarURL returns a URL to the user's avatar.
// size: The size of the user's avatar as a power of two
func (u *User) AvatarURL(size string) string {
var URL string
if strings.HasPrefix(u.Avatar, "a_") {
URL = EndpointUserAvatarAnimated(u.ID, u.Avatar)
} else {
URL = EndpointUserAvatar(u.ID, u.Avatar)
}
return URL + "?size=" + size
}