Move original size photos to Backblaze (S3 compatible storage)

pull/12/head^2
Manuel Kasper 2022-08-02 13:28:55 +02:00
rodzic 705319b53b
commit 5e60b974f3
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

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