From 3779854c8e20a59ea601ad447fd9931d908b56c5 Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Sat, 21 Jun 2025 03:56:16 +0800 Subject: [PATCH] fix(route/apnews): Correct property `author` (#19410) --- lib/routes/apnews/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/apnews/utils.ts b/lib/routes/apnews/utils.ts index 02b462f62..b8ce49272 100644 --- a/lib/routes/apnews/utils.ts +++ b/lib/routes/apnews/utils.ts @@ -44,7 +44,7 @@ export function fetchArticle(item) { description: $('div.RichTextStoryBody').html() || $(':is(.VideoLead, .VideoPage-pageSubHeading)').html(), category: [...(section ? [section] : []), ...(ldjson.keywords ?? [])], guid: $("meta[name='brightspot.contentId']").attr('content'), - author: ldjson.author, + author: ldjson.author?.map((e) => e.mainEntity), }; } else { // Live