From d9dba6f0ff1c0b248bf44096750ddc1ec2516fa6 Mon Sep 17 00:00:00 2001 From: shanmite Date: Mon, 25 Mar 2024 10:43:38 +0800 Subject: [PATCH] fix: Cannot read properties of null (reading 'is_liked') --- lib/core/searcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/searcher.js b/lib/core/searcher.js index 57d2dae..4f3fcff 100644 --- a/lib/core/searcher.js +++ b/lib/core/searcher.js @@ -63,7 +63,7 @@ function parseDynamicCard(dynamic_detail_card) { /**临时储存单个动态中的信息 */ let obj = {}; const { desc, card, extension, extend_json = "{}", display = {} } = dynamic_detail_card - , { is_liked = 1, user_profile = {} } = desc + , { is_liked = 1, user_profile = {} } = desc || {} , { info = {} } = user_profile , cardToJson = strToJson(card) , extendjsonToJson = strToJson(extend_json)