From 5dc3dd17049a5c097122c6159aa7a915658c263a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 16 Nov 2015 11:11:59 -0500 Subject: fix #1960 --- modules/avatar/avatar.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go index 60f7e2ecb7..b25b1bfe4e 100644 --- a/modules/avatar/avatar.go +++ b/modules/avatar/avatar.go @@ -104,7 +104,7 @@ func New(hash string, cacheDir string) *Avatar { expireDuration: time.Minute * 10, reqParams: url.Values{ "d": {"retro"}, - "size": {"200"}, + "size": {"290"}, "r": {"pg"}}.Encode(), imagePath: filepath.Join(cacheDir, hash+".image"), //maybe png or jpeg } @@ -194,7 +194,7 @@ func (this *service) mustInt(r *http.Request, defaultValue int, keys ...string) func (this *service) ServeHTTP(w http.ResponseWriter, r *http.Request) { urlPath := r.URL.Path hash := urlPath[strings.LastIndex(urlPath, "/")+1:] - size := this.mustInt(r, 80, "s", "size") // default size = 80*80 + size := this.mustInt(r, 290, "s", "size") // default size = 290*290 avatar := New(hash, this.cacheDir) avatar.AlterImage = this.altImage -- cgit v1.2.3