diff options
author | Erik Johnston <erik@matrix.org> | 2017-06-19 17:39:21 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-06-19 17:39:21 +0100 |
commit | b8b936a6eab46cec2460fb723124bb3a750d3c83 (patch) | |
tree | dfc75e117404bff0055300277857c4d681cdf225 /synapse/rest/media/v1/thumbnail_resource.py | |
parent | Handle all cases of sending membership events (diff) | |
download | synapse-b8b936a6eab46cec2460fb723124bb3a750d3c83.tar.xz |
Add API to quarantine media
Diffstat (limited to 'synapse/rest/media/v1/thumbnail_resource.py')
-rw-r--r-- | synapse/rest/media/v1/thumbnail_resource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/media/v1/thumbnail_resource.py b/synapse/rest/media/v1/thumbnail_resource.py index d8f54adc99..59b2c39b2f 100644 --- a/synapse/rest/media/v1/thumbnail_resource.py +++ b/synapse/rest/media/v1/thumbnail_resource.py @@ -81,7 +81,7 @@ class ThumbnailResource(Resource): method, m_type): media_info = yield self.store.get_local_media(media_id) - if not media_info: + if not media_info or media_info["quarantined_by"]: respond_404(request) return @@ -117,7 +117,7 @@ class ThumbnailResource(Resource): desired_type): media_info = yield self.store.get_local_media(media_id) - if not media_info: + if not media_info or media_info["quarantined_by"]: respond_404(request) return |