mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 04:53:08 +02:00
fix(backend): Fix #10786
This commit is contained in:
parent
d526cd70fd
commit
4dfe2c15b0
1 changed files with 2 additions and 2 deletions
|
@ -70,10 +70,10 @@ export class UrlPreviewService {
|
||||||
await summaly(url, {
|
await summaly(url, {
|
||||||
followRedirects: false,
|
followRedirects: false,
|
||||||
lang: lang ?? 'ja-JP',
|
lang: lang ?? 'ja-JP',
|
||||||
agent: {
|
agent: this.config.proxy ? {
|
||||||
http: this.httpRequestService.httpAgent,
|
http: this.httpRequestService.httpAgent,
|
||||||
https: this.httpRequestService.httpsAgent,
|
https: this.httpRequestService.httpsAgent,
|
||||||
},
|
} : undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.logger.succ(`Got preview of ${url}: ${summary.title}`);
|
this.logger.succ(`Got preview of ${url}: ${summary.title}`);
|
||||||
|
|
Loading…
Reference in a new issue