Add default avatar size
This commit is contained in:
parent
6861e55e89
commit
4a17557325
|
@ -54,7 +54,7 @@ func GetAvatar(c echo.Context) error {
|
||||||
avatarProvider := gravatar.Provider{}
|
avatarProvider := gravatar.Provider{}
|
||||||
|
|
||||||
size := c.QueryParam("size")
|
size := c.QueryParam("size")
|
||||||
var sizeInt int64
|
var sizeInt int64 = 250 // Default size of 250
|
||||||
if size != "" {
|
if size != "" {
|
||||||
sizeInt, err = strconv.ParseInt(size, 10, 64)
|
sizeInt, err = strconv.ParseInt(size, 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue