From de019f724d3d0d75d4ca391ed948cebe2d4b234a Mon Sep 17 00:00:00 2001 From: Lorenz Steinert Date: Tue, 27 Aug 2019 15:09:23 +0200 Subject: [PATCH 1/3] fix thumbnail storage location Signed-off-by: Lorenz Steinert --- synapse/rest/media/v1/media_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py index 856967735537..3c62e4fe3974 100644 --- a/synapse/rest/media/v1/media_repository.py +++ b/synapse/rest/media/v1/media_repository.py @@ -520,7 +520,7 @@ def generate_remote_exact_thumbnail(self, server_name, file_id, media_id, try: file_info = FileInfo( server_name=server_name, - file_id=media_id, + file_id=file_id, thumbnail=True, thumbnail_width=t_width, thumbnail_height=t_height, From aed8b56d5c97e91e8ff9868fdca1719ef2ecad6d Mon Sep 17 00:00:00 2001 From: Lorenz Steinert Date: Tue, 27 Aug 2019 15:18:58 +0200 Subject: [PATCH 2/3] Add changelog file. Signed-off-by: Lorenz Steinert --- changelog.d/5915.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/5915.bugfix diff --git a/changelog.d/5915.bugfix b/changelog.d/5915.bugfix new file mode 100644 index 000000000000..aab076ae7fc6 --- /dev/null +++ b/changelog.d/5915.bugfix @@ -0,0 +1 @@ +The right filesystempath is now used to store thumbnails. Fix reported by rkfg. From c7694e1cd43863fa69a190d54becc79e236cbe08 Mon Sep 17 00:00:00 2001 From: Lorenz Steinert Date: Thu, 29 Aug 2019 08:44:55 +0200 Subject: [PATCH 3/3] Update Changelog Signed-off-by: Lorenz Steinert --- changelog.d/5915.bugfix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/5915.bugfix b/changelog.d/5915.bugfix index aab076ae7fc6..bf5b99fedc9a 100644 --- a/changelog.d/5915.bugfix +++ b/changelog.d/5915.bugfix @@ -1 +1 @@ -The right filesystempath is now used to store thumbnails. Fix reported by rkfg. +Fix 404 for thumbnail download when `dynamic_thumbnails` is `false` and the thumbnail was dynamically generated. Fix reported by rkfg.