diff --git a/web/src/components/photos/carousel.astro b/web/src/components/photos/carousel.astro index 160de00..46a9f0a 100644 --- a/web/src/components/photos/carousel.astro +++ b/web/src/components/photos/carousel.astro @@ -5,11 +5,12 @@ import { authPB } from "src/utils/pocketbase"; const pb = await authPB() const photos = await pb.collection('photos').getFullList({ - sort: '-created' + sort: '-created', + filter: 'published=true' }) 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' })) ) ---