summaryrefslogtreecommitdiffstats
path: root/routers/web/user/avatar.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/user/avatar.go')
-rw-r--r--routers/web/user/avatar.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/avatar.go b/routers/web/user/avatar.go
index 4287589d1a..8a5a36e070 100644
--- a/routers/web/user/avatar.go
+++ b/routers/web/user/avatar.go
@@ -66,7 +66,7 @@ func AvatarByEmailHash(ctx *context.Context) {
ctx.Redirect(models.DefaultAvatarLink())
return
}
- size := ctx.QueryInt("size")
+ size := ctx.FormInt("size")
if size == 0 {
size = models.DefaultAvatarSize
}