potentially breaking: default lang

I switched the url preview default language from jp-JP to en
@thatonecalculator please review
This commit is contained in:
cutestnekoaqua 2023-01-10 00:19:16 +01:00
parent c33b7ac356
commit e7065fd809
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 2 additions and 2 deletions

View File

@ -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}`);