mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 15:23:08 +02:00
fix esm
This commit is contained in:
parent
51517cf96c
commit
4cd75e45b9
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export const urlPreviewHandler = async (ctx: Koa.Context) => {
|
||||||
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 ?? 'ja-JP',
|
||||||
})}`) : await summaly(url, {
|
})}`) : await summaly.default(url, {
|
||||||
followRedirects: false,
|
followRedirects: false,
|
||||||
lang: lang ?? 'ja-JP',
|
lang: lang ?? 'ja-JP',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue