Skip to content

Commit

Permalink
fix(route): Remove share widget from CBC route (#13773)
Browse files Browse the repository at this point in the history
CBC feed has "Social Sharing" in its feed. This PR removes it since it's
not needed in RSS feed.
  • Loading branch information
wb14123 authored Nov 13, 2023
1 parent 1c85030 commit f4f14bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/v2/cbc/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ module.exports = async (ctx) => {
author = head.author.map((author) => author.name).join(' & ');
}
const pubDate = head.datePublished;
const description = $('div[data-cy=storyWrapper]').html();
const descriptionDom = $('div[data-cy=storyWrapper]');
descriptionDom.find('div[class=share]').remove();
const description = descriptionDom.html();

return { title, author, pubDate, description, link };
})
Expand Down

0 comments on commit f4f14bc

Please sign in to comment.