mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-18 11:32:56 +09:00
✌️
This commit is contained in:
parent
aa4a0e8608
commit
e5f549285e
@ -3,7 +3,9 @@ import summaly from 'summaly';
|
||||
|
||||
module.exports = async (ctx: Koa.Context) => {
|
||||
try {
|
||||
const summary = await summaly(ctx.query.url);
|
||||
const summary = await summaly(ctx.query.url, {
|
||||
followRedirects: false
|
||||
});
|
||||
summary.icon = wrap(summary.icon);
|
||||
summary.thumbnail = wrap(summary.thumbnail);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user