Skip to content

Commit

Permalink
Fix url-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Mar 31, 2024
1 parent 0af9aeb commit 5d5f93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/web/url-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = async (ctx: Router.RouterContext) => {
url: url,
lang: lang
})}`) : await getSummaryInstance().summary(url, {
lang: lang
lang: typeof lang === 'string' ? lang : null,
});

logger.succ(`Got preview of ${url}: ${summary.title}`);
Expand Down

0 comments on commit 5d5f93c

Please sign in to comment.