increase thumbnail size

This commit is contained in:
2025-11-18 17:11:48 +13:00
parent 6997e313e6
commit 66623a64b4

View File

@@ -5,11 +5,12 @@ import { authPB } from "src/utils/pocketbase";
const pb = await authPB() const pb = await authPB()
const photos = await pb.collection('photos').getFullList({ const photos = await pb.collection('photos').getFullList({
sort: '-created' sort: '-created',
filter: 'published=true'
}) })
const photoLinks = await Promise.all( const photoLinks = await Promise.all(
photos.map(p => pb.files.getURL(p, p.image)) photos.map(p => pb.files.getURL(p, p.image, { thumb: '0x1800' }))
) )
--- ---