Исправьте кадрирование и очистку рабочих файлов кодека
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"messenger/internal/imaging"
|
||||
"messenger/internal/platform/apperr"
|
||||
"messenger/internal/platform/faultbarrier"
|
||||
"messenger/internal/platform/ident"
|
||||
@@ -35,10 +36,10 @@ type Config struct {
|
||||
// Binary operations report unavailability in that mode.
|
||||
func NewService(attachments AttachmentRepository, chats ChatMembership, blobs Blobs, cfg Config) *Service {
|
||||
if cfg.MaxBytes == 0 {
|
||||
cfg.MaxBytes = MaxUploadBytes
|
||||
cfg.MaxBytes = imaging.MaxUploadBytes
|
||||
}
|
||||
if cfg.MaxPixels == 0 {
|
||||
cfg.MaxPixels = MaxImagePixels
|
||||
cfg.MaxPixels = imaging.MaxImagePixels
|
||||
}
|
||||
return &Service{
|
||||
attachments: attachments,
|
||||
|
||||
Reference in New Issue
Block a user