From be1085cf232604fd6941c4339c0f3fdc67ce471b Mon Sep 17 00:00:00 2001 From: max Date: Fri, 16 Jan 2026 01:09:40 -0500 Subject: [PATCH] Update parseItem.js --- lib/parseItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parseItem.js b/lib/parseItem.js index 4ca33b7..1ca7b93 100755 --- a/lib/parseItem.js +++ b/lib/parseItem.js @@ -55,7 +55,7 @@ const _parseAuthor = obj => { const isOfficial = !!(ownerBadgesString && ownerBadgesString.includes('OFFICIAL')); const isVerified = !!(ownerBadgesString && ownerBadgesString.includes('VERIFIED')); const author = obj.ownerText && obj.ownerText.runs[0]; - if (!author || !author.navigationEndpoint) return null; + if (!author || !author.navigationEndpoint || !author.navigationEndpoint.browseEndpoint) return null; const authorUrl = author.navigationEndpoint.browseEndpoint.canonicalBaseUrl || author.navigationEndpoint.commandMetadata.webCommandMetadata.url;