Pass IMAGE_SIZE_CONFIG_POSTS to gallery compressImage call

This commit is contained in:
vineyardbovines
2026-06-04 17:13:43 -04:00
parent c9e94e9b14
commit 9d3363f61e
+4 -1
View File
@@ -355,7 +355,10 @@ async function resolveMedia(
const items: $Typed<AppBskyEmbedGallery.Image>[] = await Promise.all(
imagesDraft.map(async (image, i) => {
logger.debug(`Compressing image #${i}`)
const {path, width, height, mime} = await compressImage(image)
const {path, width, height, mime} = await compressImage(
image,
IMAGE_SIZE_CONFIG_POSTS,
)
logger.debug(`Uploading image #${i}`)
const res = await uploadBlob(agent, path, mime)
return {