increase thumbnail size
This commit is contained in:
@@ -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' }))
|
||||||
)
|
)
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user