diff options
author | Unknwon <u@gogs.io> | 2015-11-16 11:11:59 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-16 11:11:59 -0500 |
commit | 5dc3dd17049a5c097122c6159aa7a915658c263a (patch) | |
tree | 5ab99c59f6b9cf55f4e4de5b0cf5619d95c81355 /modules/avatar/avatar.go | |
parent | 134d8e7681d098b8b37d4ee47cea0e03d643965d (diff) | |
download | gitea-5dc3dd17049a5c097122c6159aa7a915658c263a.tar.gz gitea-5dc3dd17049a5c097122c6159aa7a915658c263a.zip |
fix #1960
Diffstat (limited to 'modules/avatar/avatar.go')
-rw-r--r-- | modules/avatar/avatar.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |