Skip to content

Commit

Permalink
fix(route/apnews): Refine link selector. (#15131)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Apr 6, 2024
1 parent 54cc62b commit db6eb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/apnews/topics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function handler(ctx) {
const $ = load(response.data);

const items = await Promise.all(
$('.PagePromo-content bsp-custom-headline')
$(':is(.PagePromo-content, .PageListStandardE-leadPromo-info) bsp-custom-headline')
.get()
.slice(0, ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit')) : Infinity)
.map((e) => ({
Expand Down

0 comments on commit db6eb1c

Please sign in to comment.