Skip to content
Snippets Groups Projects
Unverified Commit df8128c0 authored by syuilo's avatar syuilo
Browse files

Update url-preview.ts

parent 4841926d
No related branches found
No related tags found
No related merge requests found
import * as Koa from 'koa';
import * as request from 'request-promise-native';
import summaly from 'summaly';
import config from '../../config';
import fetchMeta from '../../misc/fetch-meta';
module.exports = async (ctx: Koa.Context) => {
......@@ -10,7 +9,6 @@ module.exports = async (ctx: Koa.Context) => {
try {
const summary = meta.summalyProxy ? await request.get({
url: meta.summalyProxy,
proxy: config.proxy,
qs: {
url: ctx.query.url
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment