From ef7af1180160aa0902354ca3d09142be95df9247 Mon Sep 17 00:00:00 2001 From: yllhwa Date: Wed, 31 Jul 2024 20:02:02 +0800 Subject: [PATCH] fix #16: weibo error --- src/lib/weibo/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/weibo/utils.js b/src/lib/weibo/utils.js index f89c1ab..67ea3fe 100644 --- a/src/lib/weibo/utils.js +++ b/src/lib/weibo/utils.js @@ -130,7 +130,7 @@ const weiboUtils = { // drop live photo const livePhotoCount = status.pics ? status.pics.filter((pic) => pic.type === 'livephotos').length : 0; - const pics = status.pics && status.pics.filter((pic) => pic.type !== 'livephotos'); + const pics = status.pics && status.pics.filter((pic) => (pic.type !== 'livephotos') && (pic.type !== 'livephoto')); // 添加微博配图 if (pics) {