From af53f4240fa536d49f75335eaea3601977e88afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Fri, 27 Mar 2020 11:14:27 +0100 Subject: [PATCH] Place: Reduce image API call to private_hash Avoids all the unnecessary informations such as thumbnails, etc --- src/routes/location/[country]/[place].svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/location/[country]/[place].svelte b/src/routes/location/[country]/[place].svelte index e85e70e..1a66603 100644 --- a/src/routes/location/[country]/[place].svelte +++ b/src/routes/location/[country]/[place].svelte @@ -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(',')