Skip to content

Commit

Permalink
fix #16: weibo error
Browse files Browse the repository at this point in the history
  • Loading branch information
yllhwa committed Jul 31, 2024
1 parent ff96d76 commit ef7af11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/weibo/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ef7af11

Please sign in to comment.