summary refs log tree commit diff
path: root/synapse/media/media_storage.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Ensure we delete media if we reject due to spam check (#17246)Erik Johnston2024-05-301-32/+27
| | | | | | | | Fixes up #17239 We need to keep the spam check within the `try/except` block. Also makes it so that we don't enter the top span twice. Also also ensures that we get the right thumbnail length.
* Fix slipped logging context when media rejected (#17239)Erik Johnston2024-05-291-65/+37
| | | | | | | When a module rejects a piece of media we end up trying to close the same logging context twice. Instead of fixing the existing code we refactor to use an async context manager, which is easier to write correctly.
* Correctly mention previous copyright (#16820)Erik Johnston2024-01-231-0/+1
| | | | | During the migration the automated script to update the copyright headers accidentally got rid of some of the existing copyright lines. Reinstate them.
* Update license headersPatrick Cloke2023-11-211-10/+16
|
* Make the media `/upload` tracing less ambiguous (#15888)Eric Eastwood2023-07-101-30/+48
| | | | | | | | | | A lot of the functions have the same name in this space like `store_file`, and we also do it multiple times for different reasons (main media repo, other storage providers, thumbnails, etc) so it's good to differentiate them so your head doesn't explode. Follow-up to https://github.com/matrix-org/synapse/pull/15850 Tracing instrumentation to media `/upload` code paths to investigate https://github.com/matrix-org/synapse/issues/15841
* Add tracing to media `/upload` endpoint (#15850)Eric Eastwood2023-07-051-0/+7
| | | Add tracing instrumentation to media `/upload` code paths to investigate https://github.com/matrix-org/synapse/issues/15841
* Move Spam Checker callbacks to a dedicated file (#15453)Andrew Morgan2023-04-181-4/+3
|
* Refactor media modules. (#15146)Patrick Cloke2023-02-271-0/+374
* Removes the `v1` directory from `test.rest.media.v1`. * Moves the non-REST code from `synapse.rest.media.v1` to `synapse.media`. * Flatten the `v1` directory from `synapse.rest.media`, but leave compatiblity with 3rd party media repositories and spam checkers.