42a231a98b
- drops `cached` columns from both media and emoji tables, instead relying on empty path - drops `processed` column from media table, as it was totally unused - adds `error` uint32 column to both media and emoji tables, and tracks basic error details encountered when trying to process remote media / emoji - updates our media / emoji processor getter functions to attempt retries only if error situation is expected to be non-permanent - adds a new `error` field to api attachment models to include error details string if failed to download - updates media placeholder text generation to include error details string Todos: - ~~update cleaner to handle the new manner of `cached` flag (i.e. paths being set)~~ - ~~update tests~~ Nice-to-haves in later PRs: - add 'force' flag for admins on media / emoji getter endpoints to allow forcing retry regardless of error type Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4625 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>