fix(route): oschina remove ads (#13655)
This commit is contained in:
@@ -66,6 +66,7 @@ module.exports = async (ctx) => {
|
||||
},
|
||||
});
|
||||
const content = cheerio.load(detail.data);
|
||||
content('.ad-wrap').remove();
|
||||
|
||||
item.description = content('.article-detail').html();
|
||||
item.author = content('.article-box__meta .item').first().text();
|
||||
|
||||
Reference in New Issue
Block a user