potentially breaking: default lang
I switched the url preview default language from jp-JP to en @thatonecalculator please review
This commit is contained in:
parent
c33b7ac356
commit
e7065fd809
|
@ -30,10 +30,10 @@ export const urlPreviewHandler = async (ctx: Koa.Context) => {
|
||||||
try {
|
try {
|
||||||
const summary = meta.summalyProxy ? await getJson(`${meta.summalyProxy}?${query({
|
const summary = meta.summalyProxy ? await getJson(`${meta.summalyProxy}?${query({
|
||||||
url: url,
|
url: url,
|
||||||
lang: lang ?? 'ja-JP',
|
lang: lang ?? 'en-US',
|
||||||
})}`) : await summaly.default(url, {
|
})}`) : await summaly.default(url, {
|
||||||
followRedirects: false,
|
followRedirects: false,
|
||||||
lang: lang ?? 'ja-JP',
|
lang: lang ?? 'en-US',
|
||||||
});
|
});
|
||||||
|
|
||||||
logger.succ(`Got preview of ${url}: ${summary.title}`);
|
logger.succ(`Got preview of ${url}: ${summary.title}`);
|
||||||
|
|
Loading…
Reference in New Issue