1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-02 08:48:37 +09:00
This commit is contained in:
syuilo 2018-05-18 12:21:53 +09:00
parent 345084a764
commit a01607fd97

View File

@ -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);