fix wrong formatting specifier thing

This commit is contained in:
Markus Unterwaditzer 2024-10-12 13:03:28 +02:00
parent 263ddf8128
commit 3d407b556e

View file

@ -466,7 +466,7 @@ func (p *Processor) UpdateAvatar(
// Ensure media within size bounds. // Ensure media within size bounds.
if avatar.Size > maxsz { if avatar.Size > maxsz {
text := fmt.Sprintf("media exceeds configured max size: %d", maxsz) text := fmt.Sprintf("media exceeds configured max size: %s", maxsz)
return nil, gtserror.NewErrorBadRequest(errors.New(text), text) return nil, gtserror.NewErrorBadRequest(errors.New(text), text)
} }
@ -511,7 +511,7 @@ func (p *Processor) UpdateHeader(
// Ensure media within size bounds. // Ensure media within size bounds.
if header.Size > maxsz { if header.Size > maxsz {
text := fmt.Sprintf("media exceeds configured max size: %d", maxsz) text := fmt.Sprintf("media exceeds configured max size: %s", maxsz)
return nil, gtserror.NewErrorBadRequest(errors.New(text), text) return nil, gtserror.NewErrorBadRequest(errors.New(text), text)
} }