From 5e60b974f336070b7d5980f5fd63d3b9a778c605 Mon Sep 17 00:00:00 2001 From: Manuel Kasper Date: Tue, 2 Aug 2022 13:28:55 +0200 Subject: [PATCH] Move original size photos to Backblaze (S3 compatible storage) --- src/mixins/photos.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mixins/photos.js b/src/mixins/photos.js index 30a8580..6bb5d20 100644 --- a/src/mixins/photos.js +++ b/src/mixins/photos.js @@ -1,7 +1,11 @@ export default { methods: { photoSrc (photo, size) { - return 'https://images.sotl.as/photos/' + size + '/' + photo.filename.substring(0, 2) + '/' + photo.filename + if (size === 'original') { + return 'https://sotlas.s3.eu-central-003.backblazeb2.com/' + photo.filename + } else { + return 'https://images.sotl.as/photos/' + size + '/' + photo.filename.substring(0, 2) + '/' + photo.filename + } } } }