X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Flazy-static.ts;h=55bf026601750d99beeb718f6bb6da695bf5c658;hb=ac907dc7c158056e9b6a5cb58acd27df5c7c2670;hp=632e4dcd8d6f5b7f5d72368541e6cb6e6f3b014c;hpb=c4fa01f7c45b66b112ebd08abce744b7c4041feb;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/lazy-static.ts b/server/controllers/lazy-static.ts index 632e4dcd8..55bf02660 100644 --- a/server/controllers/lazy-static.ts +++ b/server/controllers/lazy-static.ts @@ -1,5 +1,5 @@ -import * as cors from 'cors' -import * as express from 'express' +import cors from 'cors' +import express from 'express' import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' import { HttpStatusCode } from '../../shared/models/http/http-error-codes' import { logger } from '../helpers/logger' @@ -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()