Skip to content

Commit

Permalink
fix(route): Refine category for udn feed. (DIYgod#13351)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Sep 21, 2023
1 parent b08abca commit 6b7949a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v2/udn/breaking-news.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = async (ctx) => {
author: data.author.name,
description,
pubDate: timezone(parseDate(item.time.date, 'YYYY-MM-DD HH:mm'), +8),
category: [data.articleSection, ...data.keywords.split(',')],
category: [data.articleSection, $("meta[name='subsection']").attr('content'), ...data.keywords.split(',')],
link,
};
});
Expand Down

0 comments on commit 6b7949a

Please sign in to comment.