Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactor media modules. (#15146) | Patrick Cloke | 2023-02-27 | 1 | -410/+0 |
| | | | | | | | * 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. | ||||
* | Fix media repository failing when media store path contains symlinks (#11446) | Sean Quah | 2021-12-02 | 1 | -44/+71 |
| | |||||
* | Prevent the media store from writing outside of the configured directory | Sean Quah | 2021-11-19 | 1 | -42/+199 |
| | | | | | Also tighten validation of server names by forbidding invalid characters in IPv6 addresses and empty domain labels. | ||||
* | Remove dead code from `MediaFilePaths` (#11056) | Sean Quah | 2021-10-13 | 1 | -17/+0 |
| | |||||
* | Update `_wrap_in_base_path` type hints to preserve function arguments (#11055) | Sean Quah | 2021-10-12 | 1 | -3/+6 |
| | |||||
* | Avoid storing URL cache files in storage providers (#10911) | Sean Quah | 2021-09-27 | 1 | -5/+6 |
| | | | | | URL cache files are short-lived and it does not make sense to offload them (eg. to the cloud) or back them up. | ||||
* | Add missing type hints to non-client REST servlets. (#10817) | Patrick Cloke | 2021-09-15 | 1 | -3/+3 |
| | | | | Including admin, consent, key, synapse, and media. All REST servlets (the synapse.rest module) now require typed method definitions. | ||||
* | Remove various bits of compatibility code for Python <3.6 (#9879) | Andrew Morgan | 2021-04-27 | 1 | -1/+1 |
| | | | I went through and removed a bunch of cruft that was lying around for compatibility with old Python versions. This PR also will now prevent Synapse from starting unless you're running Python 3.6+. | ||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Add type hints to media rest resources. (#9093) | Patrick Cloke | 2021-01-15 | 1 | -16/+34 |
| | |||||
* | Add an admin api to delete local media. (#8519) | Dirk Klimpel | 2020-10-26 | 1 | -0/+17 |
| | | | | | | Related to: #6459, #3479 Add `DELETE /_synapse/admin/v1/media/<server_name>/<media_id>` to delete a single file from server. | ||||
* | Include method in thumbnail media name (#7124) | DeepBlueV7.X | 2020-09-08 | 1 | -1/+18 |
| | | | | | | | | | | | | | | This fixes an issue where different methods (crop/scale) overwrite each other. This first tries the new path. If that fails and we are looking for a remote thumbnail, it tries the old path. If that still isn't found, it continues as normal. This should probably be removed in the future, after some of the newer thumbnails were generated with the new path on most deployments. Then the overhead should be minimal if the other thumbnails need to be regenerated. Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de> | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -78/+53 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -1/+1 |
| | |||||
* | Don't needlessly rename variable | Erik Johnston | 2017-10-13 | 1 | -13/+13 |
| | |||||
* | Add paths back in... | Erik Johnston | 2017-10-13 | 1 | -4/+4 |
| | |||||
* | Make things be absolute paths again | Erik Johnston | 2017-10-13 | 1 | -7/+7 |
| | |||||
* | Fix comments | Erik Johnston | 2017-10-12 | 1 | -1/+1 |
| | |||||
* | Copy everything to backup | Erik Johnston | 2017-10-12 | 1 | -33/+66 |
| | |||||
* | Support new and old style media id formats | Erik Johnston | 2017-09-28 | 1 | -31/+81 |
| | |||||
* | Delete expired url cache data | Erik Johnston | 2017-09-28 | 1 | -2/+41 |
| | |||||
* | Store URL cache preview downloads seperately | Erik Johnston | 2017-06-23 | 1 | -0/+18 |
| | | | | This makes it easier to clear old media out at a later date | ||||
* | Implement purge_media_cache admin API | Erik Johnston | 2016-06-29 | 1 | -0/+6 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Move rest APIs back under the rest directory | Mark Haines | 2015-01-22 | 1 | -0/+67 |