summary refs log tree commit diff
path: root/synapse/rest/media/v1/filepath.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactor media modules. (#15146)Patrick Cloke2023-02-271-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 Quah2021-12-021-44/+71
|
* Prevent the media store from writing outside of the configured directorySean Quah2021-11-191-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 Quah2021-10-131-17/+0
|
* Update `_wrap_in_base_path` type hints to preserve function arguments (#11055)Sean Quah2021-10-121-3/+6
|
* Avoid storing URL cache files in storage providers (#10911)Sean Quah2021-09-271-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 Cloke2021-09-151-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 Morgan2021-04-271-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 Jong2021-04-141-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 Cloke2021-01-151-16/+34
|
* Add an admin api to delete local media. (#8519)Dirk Klimpel2020-10-261-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.X2020-09-081-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 Cloke2020-09-041-1/+1
|
* Run Black. (#5482)Amber Brown2019-06-201-78/+53
|
* run isortAmber Brown2018-07-091-1/+1
|
* Don't needlessly rename variableErik Johnston2017-10-131-13/+13
|
* Add paths back in...Erik Johnston2017-10-131-4/+4
|
* Make things be absolute paths againErik Johnston2017-10-131-7/+7
|
* Fix commentsErik Johnston2017-10-121-1/+1
|
* Copy everything to backupErik Johnston2017-10-121-33/+66
|
* Support new and old style media id formatsErik Johnston2017-09-281-31/+81
|
* Delete expired url cache dataErik Johnston2017-09-281-2/+41
|
* Store URL cache preview downloads seperatelyErik Johnston2017-06-231-0/+18
| | | | This makes it easier to clear old media out at a later date
* Implement purge_media_cache admin APIErik Johnston2016-06-291-0/+6
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Move rest APIs back under the rest directoryMark Haines2015-01-221-0/+67