fix:bili dynamic NPE (#200)
add data.summary at description,add null check for data.vest
This commit is contained in:
parent
b1ec84833f
commit
c7f75e3c14
|
|
@ -50,8 +50,8 @@ module.exports = async (ctx) => {
|
|||
}
|
||||
|
||||
return {
|
||||
title: data.title || data.description || data.content || data.vest.content,
|
||||
description: `${data.desc || data.description || data.content || data.vest.content + data.sketch.title}${imgHTML} `,
|
||||
title: data.title || data.description || data.content || (data.vest && data.vest.content),
|
||||
description: `${data.desc || data.description || data.content || data.summary || (data.vest && data.vest.content) + (data.sketch && data.sketch.title)}${imgHTML} `,
|
||||
pubDate: new Date(item.desc.timestamp * 1000).toUTCString(),
|
||||
link: link,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue