Skip to content

Commit

Permalink
fix(route/cna): Remove (sporadic) subscription banner (#13521)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Oct 14, 2023
1 parent e203406 commit c05524b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/v2/cna/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = async (ctx) => {
url: item.link,
});
const content = cheerio.load(detailResponse.data);
content('div.SubscriptionInner').remove();
const topImage = content('.fullPic').html();

item.description = (topImage === null ? '' : topImage) + content('.paragraph').eq(0).html();
Expand Down

0 comments on commit c05524b

Please sign in to comment.