Fix image formats and size, add feedback

This commit is contained in:
blankhex committed 2026-10-23 13:36:04 +03:00
1 parent feaab7e4e2
commit fef1abade8
11 files changed
+192 -12

No files matched your search

+8 -3
View File
@@ -9,9 +9,14 @@ import (
)
const (
MaxImageWidth = 1024
MaxImageHeight = 1024
PasswordCost = 14
// MaxImageWidth and MaxImageHeight cap the dimensions of an uploaded
// avatar.
MaxImageWidth = 2048
MaxImageHeight = 2048
// MaxImageSize is the maximum accepted avatar upload size in bytes
// (4 MiB).
MaxImageSize = 4 << 20
PasswordCost = 14
)
type Service struct {