Uploading an avatar media exceeding max size returns a 413
authorduponin <duponin@locahlo.st>
Sun, 11 Dec 2022 21:54:47 +0000 (22:54 +0100)
committerFrancis Dinh <normandy@biribiri.dev>
Mon, 12 Dec 2022 22:28:09 +0000 (17:28 -0500)
commitc9304962c3a91f7e38e3d519637b5617a2df4e30
treeba693d25c4b815bf050346a6e9a38ffe808d6530
parent77e9a52450d897f39a28276694ac175955232d0e
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.
lib/pleroma/user.ex
lib/pleroma/web/api_spec/operations/account_operation.ex
lib/pleroma/web/mastodon_api/controllers/account_controller.ex
test/pleroma/web/mastodon_api/update_credentials_test.exs