From 2e256eb138cc41c3f3d4635dd5152233dcf884e7 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Tue, 10 Jan 2023 00:19:16 +0100 Subject: [PATCH] potentially breaking: default lang I switched the url preview default language from jp-JP to en @thatonecalculator please review --- packages/backend/src/server/web/url-preview.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/web/url-preview.ts b/packages/backend/src/server/web/url-preview.ts index 1e259649f..23819135a 100644 --- a/packages/backend/src/server/web/url-preview.ts +++ b/packages/backend/src/server/web/url-preview.ts @@ -30,10 +30,10 @@ export const urlPreviewHandler = async (ctx: Koa.Context) => { try { const summary = meta.summalyProxy ? await getJson(`${meta.summalyProxy}?${query({ url: url, - lang: lang ?? 'ja-JP', + lang: lang ?? 'en-US', })}`) : await summaly.default(url, { followRedirects: false, - lang: lang ?? 'ja-JP', + lang: lang ?? 'en-US', }); logger.succ(`Got preview of ${url}: ${summary.title}`);