fix(route): author retrieval in nationalgeographic/latest-stories.js (#12636)
This commit is contained in:
@@ -32,7 +32,10 @@ module.exports = async (ctx) => {
|
||||
const mods = findNatgeo($).page.content.article.frms.find((f) => f.cmsType === 'ArticleBodyFrame').mods;
|
||||
const bodyTile = mods.find((m) => m.edgs[0].cmsType === 'ArticleBodyTile').edgs[0];
|
||||
|
||||
item.author = bodyTile.schma.athrs.map((a) => a.name).join(', ');
|
||||
item.author = bodyTile.cntrbGrp
|
||||
.flatMap((c) => c.contributors)
|
||||
.map((c) => c.displayName)
|
||||
.join(', ');
|
||||
item.description = art(join(__dirname, 'templates/stories.art'), {
|
||||
ldMda: bodyTile.ldMda,
|
||||
description: bodyTile.dscrptn,
|
||||
|
||||
Reference in New Issue
Block a user