1
0
forked from mirror/misskey

fix(backend): Fix #10786

This commit is contained in:
tamaina 2023-05-07 11:58:08 +00:00
parent d526cd70fd
commit 4dfe2c15b0

View File

@ -70,10 +70,10 @@ export class UrlPreviewService {
await summaly(url, {
followRedirects: false,
lang: lang ?? 'ja-JP',
agent: {
agent: this.config.proxy ? {
http: this.httpRequestService.httpAgent,
https: this.httpRequestService.httpsAgent,
},
} : undefined,
});
this.logger.succ(`Got preview of ${url}: ${summary.title}`);