mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 02:26:16 -06:00
fix wrong formatting specifier thing
This commit is contained in:
parent
263ddf8128
commit
3d407b556e
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue