Place: Reduce image API call to private_hash
All checks were successful
continuous-integration/drone/push Build is passing

Avoids all the unnecessary informations such as thumbnails, etc
This commit is contained in:
2020-03-27 11:14:27 +01:00
parent ebf1d99645
commit af53f4240f

View File

@@ -5,7 +5,7 @@
export async function preload (page, session) {
// Load photos
const fields = [
'id', 'name', 'slug', 'date', 'image.*',
'id', 'name', 'slug', 'date', 'image.private_hash',
'location.id', 'location.name', 'location.slug', 'location.region', 'location.country.name', 'location.country.slug',
'created_on', 'modified_on'
].join(',')