feat: remove addNoReferrer

This commit is contained in:
DIYgod
2019-08-28 14:33:05 +08:00
parent 29f588e6a0
commit a34b9ae542
31 changed files with 0 additions and 79 deletions

View File

@@ -1,6 +1,5 @@
const got = require('@/utils/got');
const cheerio = require('cheerio');
const { addNoReferrer } = require('@/utils/common-utils');
module.exports = async (ctx) => {
const link = 'https://developers.weixin.qq.com/community/plugins';
@@ -39,8 +38,6 @@ module.exports = async (ctx) => {
const id = 'x-rsshub';
const $ = cheerio.load(`<div id="${id}">${pluginDetail.data.data.Content}</div>`);
addNoReferrer($, `#${id}`, 'data-src');
item.description = $(`#${id}`).html();
ctx.cache.set(key, item.description);
}