From f84d399fd67e7e5fa5617c7228ef6d673a655f52 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 19 Feb 2024 23:54:31 +0800 Subject: [PATCH] fix(route): instagram null caption (#14498) --- lib/v2/instagram/common-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/instagram/common-utils.js b/lib/v2/instagram/common-utils.js index a3a01085ff..96dcf91b06 100644 --- a/lib/v2/instagram/common-utils.js +++ b/lib/v2/instagram/common-utils.js @@ -43,7 +43,7 @@ const renderItems = (items) => // Metadata const url = `https://www.instagram.com/p/${item.code}/`; - const pubDate = parseDate(item.caption.created_at_utc || item.taken_at, 'X'); + const pubDate = parseDate(item.caption?.created_at_utc || item.taken_at, 'X'); const title = summary.split('\n')[0]; return {