diff --git a/modules/instagram.js b/modules/instagram.js index 1e25083..528962f 100644 --- a/modules/instagram.js +++ b/modules/instagram.js @@ -852,11 +852,11 @@ function parseItemlistItem(node) { "url": "https://www.instagram.com/p/" + node.code, "body": caption, - "author_id": user.id ?? owner.id ?? new MissingMappedField(""), - "author": user.username ?? owner.username ?? new MissingMappedField(""), - "author_fullname": user.full_name ?? owner.full_name ?? new MissingMappedField(""), - "verified": Boolean(user.is_verified), - "author_avatar_url": user.profile_pic_url ?? owner.profile_pic_url ?? new MissingMappedField(""), + "author_id": user?.id ?? owner?.id ?? new MissingMappedField(""), + "author": user?.username ?? owner?.username ?? new MissingMappedField(""), + "author_fullname": user?.full_name ?? owner?.full_name ?? new MissingMappedField(""), + "verified": Boolean(user?.is_verified), + "author_avatar_url": user?.profile_pic_url ?? owner?.profile_pic_url ?? new MissingMappedField(""), "coauthors": coauthors, "coauthor_fullnames": coauthor_fullnames, "coauthor_ids": coauthor_ids,