X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Flazy-static.ts;h=55bf026601750d99beeb718f6bb6da695bf5c658;hb=7c84bc27e639c205c27b54416896d09ecdd81f74;hp=a4076ee56b3e54d2a806880b3be455ca87a131bd;hpb=41fb13c330de629df2d23379209e79c7af0f2e9a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/lazy-static.ts b/server/controllers/lazy-static.ts index a4076ee56..55bf02660 100644 --- a/server/controllers/lazy-static.ts +++ b/server/controllers/lazy-static.ts @@ -64,7 +64,15 @@ async function getActorImage (req: express.Request, res: express.Response, next: logger.info('Lazy serve remote actor image %s.', image.fileUrl) try { - await pushActorImageProcessInQueue({ filename: image.filename, fileUrl: image.fileUrl, type: image.type }) + await pushActorImageProcessInQueue({ + filename: image.filename, + fileUrl: image.fileUrl, + size: { + height: image.height, + width: image.width + }, + type: image.type + }) } catch (err) { logger.warn('Cannot process remote actor image %s.', image.fileUrl, { err }) return res.status(HttpStatusCode.NOT_FOUND_404).end()