diff --git a/models/user.go b/models/user.go index b7bf4744d..d5ee5c432 100644 --- a/models/user.go +++ b/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() diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index c8b7c591b..c799bedc2 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -4,12 +4,14 @@
- {{if .Owner.UseCustomAvatar}} + {{if and (.Owner.UseCustomAvatar) (eq .SignedUser.Id .Owner.Id)}} - {{else}} + {{else if eq .SignedUser.Id .Owner.Id}} + {{else}} + {{end}} - +
{{if .Owner.FullName}}{{.Owner.FullName}}
{{end}} @@ -17,7 +19,7 @@
-
+
    {{if .Owner.Location}}
  •   {{.Owner.Location}}