From 4cd75e45b9526d92acec70fd6ddf504230311ea8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 1 Mar 2022 01:33:25 +0900 Subject: [PATCH] fix esm --- packages/backend/src/server/web/url-preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/web/url-preview.ts b/packages/backend/src/server/web/url-preview.ts index 592e6bad54..6bd8ead5b5 100644 --- a/packages/backend/src/server/web/url-preview.ts +++ b/packages/backend/src/server/web/url-preview.ts @@ -31,7 +31,7 @@ export const urlPreviewHandler = async (ctx: Koa.Context) => { const summary = meta.summalyProxy ? await getJson(`${meta.summalyProxy}?${query({ url: url, lang: lang ?? 'ja-JP', - })}`) : await summaly(url, { + })}`) : await summaly.default(url, { followRedirects: false, lang: lang ?? 'ja-JP', });