summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/media/v1/media_repository.py3
-rw-r--r--synapse/media/v1/upload_resource.py1
-rw-r--r--synapse/storage/media_repository.py3
3 files changed, 4 insertions, 3 deletions
diff --git a/synapse/media/v1/media_repository.py b/synapse/media/v1/media_repository.py
index 0f4eeef278..afd92874cf 100644
--- a/synapse/media/v1/media_repository.py
+++ b/synapse/media/v1/media_repository.py
@@ -49,7 +49,8 @@ class MediaRepositoryResource(Resource):
 
     Clients can get thumbnails by supplying a desired width and height::
 
-        => GET /_matrix/media/v1/thumbnail/<media-id>?width=<w>&height=<h> HTTP/1.1
+        => GET /_matrix/media/v1
+                /thumbnail/<media-id>?width=<w>&height=<h> HTTP/1.1
 
         <= HTTP/1.1 200 OK
            Content-Type: image/jpeg or image/png
diff --git a/synapse/media/v1/upload_resource.py b/synapse/media/v1/upload_resource.py
index d9d7825b2b..2919fee12f 100644
--- a/synapse/media/v1/upload_resource.py
+++ b/synapse/media/v1/upload_resource.py
@@ -29,6 +29,7 @@ import logging
 
 logger = logging.getLogger(__name__)
 
+
 class UploadResource(resource.Resource):
 
     def __init__(self, hs, filepaths):
diff --git a/synapse/storage/media_repository.py b/synapse/storage/media_repository.py
index db03619a80..eda191ad5b 100644
--- a/synapse/storage/media_repository.py
+++ b/synapse/storage/media_repository.py
@@ -78,7 +78,7 @@ class MediaRepositoryStore(SQLBaseStore):
 
     def store_cached_remote_media(self, origin, media_id, media_type,
                                   media_length, time_now_ms, upload_name,
-                                  filesytem_id):
+                                  filesystem_id):
         return self._simple_insert(
             "remote_media_cache",
             {
@@ -103,7 +103,6 @@ class MediaRepositoryStore(SQLBaseStore):
             )
         )
 
-
     def store_remote_media_thumbnail(self, origin, media_id, thumbnail_width,
                                      thumbnail_height, thumbnail_type,
                                      thumbnail_length, filesystem_id):