Browse Source

Resize avatars to the same size they are displayed

pull/1464/head
James Anderson 9 years ago
parent
commit
e5146155a0
  1. 2
      models/user.go

2
models/user.go

@ -194,7 +194,7 @@ func (u *User) UploadAvatar(data []byte) error {
if err != nil {
return err
}
m := resize.Resize(200, 200, img, resize.NearestNeighbor)
m := resize.Resize(234, 234, img, resize.NearestNeighbor)
sess := x.NewSession()
defer sess.Close()

Loading…
Cancel
Save