style: auto format

This commit is contained in:
github-actions[bot] 2026-05-23 13:39:38 +00:00
parent 6f9b7c99f3
commit cd6a40c14f
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ export const parseItem = async (item) => {
item.summary = renderHTML(article.summary.json);
item.description = renderHTML(article.subHeadline.json) + renderHTML(article.images.find((i) => i.type === 'leading')) + renderHTML(article.body.json);
item.updated = parseDate(article.updatedDate, 'x');
item.category = [...new Set([...article.topics.map((t) => t.name), ...((article.sectionsV2?.flatMap((t) => t.value.map((v) => v.name))) ?? []), ...article.keywords.map((k) => k?.split(', '))])];
item.category = [...new Set([...article.topics.map((t) => t.name), ...(article.sectionsV2?.flatMap((t) => t.value.map((v) => v.name)) ?? []), ...article.keywords.map((k) => k?.split(', '))])];
// N.B. gallery in article is not rendered
// e.g., { type: 'div', attribs: { class: 'scmp-photo-gallery', 'data-gallery-nid': '3239409' }}