diff options
author | Erik Johnston <erik@matrix.org> | 2018-01-18 15:06:24 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-01-18 15:06:24 +0000 |
commit | 9a89dae8c53140c74f968538f72a4045b6aca90d (patch) | |
tree | a5ef558160749bae21c004dee447b70cd6ebbfcd /synapse/rest/media/v1 | |
parent | Merge pull request #2810 from matrix-org/rav/metrics_fixes (diff) | |
download | synapse-9a89dae8c53140c74f968538f72a4045b6aca90d.tar.xz |
Fix typo in thumbnail resource causing access times to be incorrect
Diffstat (limited to 'synapse/rest/media/v1')
-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 c09f2dec41..12e84a2b7c 100644 --- a/synapse/rest/media/v1/thumbnail_resource.py +++ b/synapse/rest/media/v1/thumbnail_resource.py @@ -67,7 +67,7 @@ class ThumbnailResource(Resource): yield self._respond_local_thumbnail( request, media_id, width, height, method, m_type ) - self.media_repo.mark_recently_accessed(server_name, media_id) + self.media_repo.mark_recently_accessed(None, media_id) else: if self.dynamic_thumbnails: yield self._select_or_generate_remote_thumbnail( @@ -79,7 +79,7 @@ class ThumbnailResource(Resource): request, server_name, media_id, width, height, method, m_type ) - self.media_repo.mark_recently_accessed(None, media_id) + self.media_repo.mark_recently_accessed(server_name, media_id) @defer.inlineCallbacks def _respond_local_thumbnail(self, request, media_id, width, height, |