mirror of
https://github.com/element-hq/synapse
synced 2024-10-06 10:02:39 +00:00
Fix typo in thumbnail resource causing access times to be incorrect
This commit is contained in:
parent
5a4da21d58
commit
9a89dae8c5
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ class ThumbnailResource(Resource):
|
||||||
yield self._respond_local_thumbnail(
|
yield self._respond_local_thumbnail(
|
||||||
request, media_id, width, height, method, m_type
|
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:
|
else:
|
||||||
if self.dynamic_thumbnails:
|
if self.dynamic_thumbnails:
|
||||||
yield self._select_or_generate_remote_thumbnail(
|
yield self._select_or_generate_remote_thumbnail(
|
||||||
|
@ -79,7 +79,7 @@ class ThumbnailResource(Resource):
|
||||||
request, server_name, media_id,
|
request, server_name, media_id,
|
||||||
width, height, method, m_type
|
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
|
@defer.inlineCallbacks
|
||||||
def _respond_local_thumbnail(self, request, media_id, width, height,
|
def _respond_local_thumbnail(self, request, media_id, width, height,
|
||||||
|
|
Loading…
Reference in a new issue