mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-25 07:36:55 +09:00
✌️
This commit is contained in:
parent
345084a764
commit
a01607fd97
@ -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