From 0f0712205c3474c9baec40e1352f9b6b34ea443e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 10 May 2016 18:09:05 +0200 Subject: [PATCH] Make thumbnails (variations of size 't') public. --- pillar/application/modules/file_storage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pillar/application/modules/file_storage.py b/pillar/application/modules/file_storage.py index eea5fd73..94993667 100644 --- a/pillar/application/modules/file_storage.py +++ b/pillar/application/modules/file_storage.py @@ -124,6 +124,9 @@ def _process_image(gcs, file_id, local_file, src_file): blob.upload_from_filename(variation['local_path'], content_type=variation['content_type']) + if variation.get('size') == 't': + blob.make_public() + try: os.unlink(variation['local_path']) except OSError: