diff --git a/routes/jike/user.js b/routes/jike/user.js index 5e95cf710..fcae6ac38 100644 --- a/routes/jike/user.js +++ b/routes/jike/user.js @@ -44,7 +44,11 @@ module.exports = async (ctx) => { }); let content = item.content || item.linkInfo && item.linkInfo.title || item.target && item.target.content || item.question && item.question.title; - const shortenTitle = content.length > 75 ? `${content.substr(0, 75)}...` : content; + + let shortenTitle = '一条动态'; + if(content) { + shortenTitle = content.length > 75 ? `${content.substr(0, 75)}...` : content; + } if (item.type === 'REPOST') { const targetLinkMap = {