diff options
Diffstat (limited to 'internal/db/repo.go')
-rw-r--r-- | internal/db/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/repo.go b/internal/db/repo.go index 7c307144..9f889bc2 100644 --- a/internal/db/repo.go +++ b/internal/db/repo.go @@ -336,7 +336,7 @@ func (repo *Repository) UploadAvatar(data []byte) error { } defer fw.Close() - m := resize.Resize(avatar.AVATAR_SIZE, avatar.AVATAR_SIZE, img, resize.NearestNeighbor) + m := resize.Resize(avatar.DefaultSize, avatar.DefaultSize, img, resize.NearestNeighbor) if err = png.Encode(fw, m); err != nil { return fmt.Errorf("encode image: %v", err) } |