summary refs log tree commit diff
path: root/synapse/rest/media/v1/thumbnail_resource.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make the http server handle coroutine-making REST servlets (#5475)Amber Brown2019-06-291-15/+12
|
* Run Black. (#5482)Amber Brown2019-06-201-39/+81
|
* Fix error when downloading thumbnail with width/height param missing (#5258)Aaron Raimist2019-05-291-2/+2
| | | | | | | Fix error when downloading thumbnail with width/height param missing Fixes #2748 Signed-off-by: Aaron Raimist <aaron@raim.ist>
* run isortAmber Brown2018-07-091-5/+6
|
* Set Server header in SynapseRequestRichard van der Hoff2018-05-101-1/+0
| | | | | | | | | | | | (instead of everywhere that writes a response. Or rather, the subset of places which write responses where we haven't forgotten it). This also means that we don't have to have the mysterious version_string attribute in anything with a request handler. Unfortunately it does mean that we have to pass the version string wherever we instantiate a SynapseSite, which has been c&ped 150 times, but that is code that ought to be cleaned up anyway really.
* Remove redundant request_handler decoratorRichard van der Hoff2018-05-101-10/+13
| | | | | | This is needless complexity; we might as well use the wrapper directly. Also rename wrap_request_handler->wrap_json_request_handler.
* Merge pull request #2791 from matrix-org/erikj/media_storage_refactorErik Johnston2018-02-051-1/+2
|\ | | | | Ensure media is in local cache before thumbnailing
| * Ensure media is in local cache before thumbnailingErik Johnston2018-01-181-1/+2
| |
* | Fix typo in thumbnail resource causing access times to be incorrectErik Johnston2018-01-181-2/+2
| |
* | Update last access time when thumbnails are viewedErik Johnston2018-01-171-0/+2
|/
* Fix typoErik Johnston2018-01-161-7/+10
|
* Fix up log linesErik Johnston2018-01-161-6/+9
|
* Correctly use server_name/file_id when generating/fetching remote thumbnailsErik Johnston2018-01-161-3/+3
|
* Log when we respond with 404Erik Johnston2018-01-161-1/+7
|
* Fix thumbnailing remote filesErik Johnston2018-01-161-2/+2
|
* Merge pull request #2767 from matrix-org/erikj/media_storage_refactorErik Johnston2018-01-161-47/+65
|\ | | | | Refactor MediaRepository to separate out storage
| * Make ThumbnailResource use MediaStorageErik Johnston2018-01-091-47/+65
| |
* | Reinstate media download on thumbnail requestRichard van der Hoff2018-01-121-0/+5
|/ | | | | We need to actually download the remote media when we get a request for a thumbnail.
* Remove dead TODOErik Johnston2018-01-091-2/+0
|
* Remove dead code related to default thumbnailsErik Johnston2018-01-091-73/+3
|
* Store URL cache preview downloads seperatelyErik Johnston2017-06-231-6/+22
| | | | This makes it easier to clear old media out at a later date
* Add API to quarantine mediaErik Johnston2017-06-191-2/+2
|
* Set CORs headers on responses from the media repoMark Haines2016-11-021-1/+2
|
* Report per request metrics for all of the things using request_handlerMark Haines2016-04-281-1/+2
|
* Move MediaRepository to media_repository moduleErik Johnston2016-04-191-1/+1
|
* Split out BaseMediaResource into MediaRepositoryErik Johnston2016-04-191-20/+31
| | | | | | | | | This is so that a single MediaRepository can be shared across all resources, rather than having a "copy" per resource. In particular this allows us to guard against both the thumbnail and download resource triggering a download of remote content at the same time.
* comment out 2c838f6459db35ad9812a83184d85a06ca5d940a due to risk of ↵Matthew Hodgson2016-04-141-16/+16
| | | | https://en.wikipedia.org/wiki/Billion_laughs attacks - thanks @torhve
* how was _respond_default_thumbnail ever meant to work?Matthew Hodgson2016-04-021-0/+2
|
* pass back SVGs as their own thumbnailsMatthew Hodgson2016-04-021-0/+20
|
* Only use cropped thumbnails when asked for a cropped thumbnail.Mark Haines2016-01-071-1/+1
| | | | Even though ones cropped with scale might be technically valid.
* Allow guests to upgrade their accountsDaniel Wagner-Hall2016-01-051-1/+1
|
* Use larger thumbnail rather than smaller.Erik Johnston2016-01-051-4/+13
|
* Make a config option for whether to generate new thumbnail sizes dynamicallyMark Haines2015-08-121-7/+18
|
* Fix remote thumbnailingErik Johnston2015-07-231-6/+10
|
* Always return a thumbnail of the requested size.Erik Johnston2015-07-231-2/+79
| | | | | | Before, we returned a thumbnail that was at least as big (if possible) as the requested size. Now, if we don't have a thumbnail of the given size we generate (and persist) one of that size.
* Pick larger than desired thumbnail for 'crop'Erik Johnston2015-07-231-1/+2
|
* If user supplies filename in URL when downloading from media repo, use that ↵Erik Johnston2015-07-031-1/+1
| | | | name in Content Disposition
* Combine the request wrappers in rest/media/v1 and http/server into a single ↵Mark Haines2015-04-211-7/+9
| | | | wrapper decorator
* Move rest APIs back under the rest directoryMark Haines2015-01-221-0/+193