1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 22:56:49 +09:00

Update url-preview.ts

This commit is contained in:
syuilo 2018-11-24 06:41:22 +09:00
parent 4841926df1
commit df8128c0b1
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -1,7 +1,6 @@
import * as Koa from 'koa'; import * as Koa from 'koa';
import * as request from 'request-promise-native'; import * as request from 'request-promise-native';
import summaly from 'summaly'; import summaly from 'summaly';
import config from '../../config';
import fetchMeta from '../../misc/fetch-meta'; import fetchMeta from '../../misc/fetch-meta';
module.exports = async (ctx: Koa.Context) => { module.exports = async (ctx: Koa.Context) => {
@ -10,7 +9,6 @@ module.exports = async (ctx: Koa.Context) => {
try { try {
const summary = meta.summalyProxy ? await request.get({ const summary = meta.summalyProxy ? await request.get({
url: meta.summalyProxy, url: meta.summalyProxy,
proxy: config.proxy,
qs: { qs: {
url: ctx.query.url url: ctx.query.url
}, },