superseriousbusiness / gotosocial

Fast, fun, small ActivityPub server.
https://docs.gotosocial.org
GNU Affero General Public License v3.0
3.7k stars 316 forks source link

[bugfix] fix media limit reader check #3363

Closed NyaaaWhatsUpDoc closed 1 day ago

NyaaaWhatsUpDoc commented 1 day ago

Description

So it turns out that doing an empty read to check for io.EOF only works with some readers. This fixes that! And improves some of the errors we return to API callers when local media limits have been reached.

This is a partial fix for #3362 which encompasses 2 issues.

Checklist