mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 12:53:09 +02:00
✌️
This commit is contained in:
parent
345084a764
commit
a01607fd97
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,9 @@ import summaly from 'summaly';
|
||||||
|
|
||||||
module.exports = async (ctx: Koa.Context) => {
|
module.exports = async (ctx: Koa.Context) => {
|
||||||
try {
|
try {
|
||||||
const summary = await summaly(ctx.query.url);
|
const summary = await summaly(ctx.query.url, {
|
||||||
|
followRedirects: false
|
||||||
|
});
|
||||||
summary.icon = wrap(summary.icon);
|
summary.icon = wrap(summary.icon);
|
||||||
summary.thumbnail = wrap(summary.thumbnail);
|
summary.thumbnail = wrap(summary.thumbnail);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue