From 3d407b556e041f8ea1ce6a6967509fff03a939a6 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 12 Oct 2024 13:03:28 +0200 Subject: [PATCH] fix wrong formatting specifier thing --- internal/processing/account/update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/processing/account/update.go b/internal/processing/account/update.go index a21b0c9d2..285f822dd 100644 --- a/internal/processing/account/update.go +++ b/internal/processing/account/update.go @@ -466,7 +466,7 @@ func (p *Processor) UpdateAvatar( // Ensure media within size bounds. 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) } @@ -511,7 +511,7 @@ func (p *Processor) UpdateHeader( // Ensure media within size bounds. 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) }