Make thumbnails (variations of size 't') public.

This commit is contained in:
Sybren A. Stüvel 2016-05-10 18:09:05 +02:00
parent 6a07147e44
commit 0f0712205c

View File

@ -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: