Return HTTP code 413 when uploading an avatar/header that's too large #367

Merged
floatingghost merged 3 commits from norm/akkoma:return-413-max-size into develop 2022-12-14 10:07:24 +00:00

3 Commits

Author SHA1 Message Date
Norm 8104f46031
Update 'CHANGELOG.md'
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2022-12-12 17:28:56 -05:00
duponin 3e9c0b380a
Return 413 when an actor's banner or background exceeds the size limit 2022-12-12 17:28:14 -05:00
duponin c9304962c3
Uploading an avatar media exceeding max size returns a 413
Until now it was returning a 500 because the upload plug were going
through the changeset and ending in the JSON encoder, which raised
because struct has to @derive the encoder.
2022-12-12 17:28:09 -05:00