mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
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
bd57f8f932
commit
2e256eb138
1 changed files with 2 additions and 2 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Reference in a new issue