diff --git a/routes/jike/user.js b/routes/jike/user.js
index defcce7f64..23e0c45233 100644
--- a/routes/jike/user.js
+++ b/routes/jike/user.js
@@ -41,19 +41,20 @@ module.exports = async (ctx) => {
let linkTemplate = '';
if (item.linkInfo && item.linkInfo.linkUrl) {
- linkTemplate = `
${item.linkInfo.title}`;
+ linkTemplate = `${item.linkInfo.title}
`;
}
let imgTemplate = '';
item.pictures && item.pictures.forEach((item) => {
- imgTemplate += `
`;
+ imgTemplate += `
`;
});
- let content = item.content || item.linkInfo && item.linkInfo.title || item.target && item.target.content || item.question && item.question.title || '';
+ let content = item.content || item.linkInfo && item.linkInfo.title || item.question && item.question.title || '';
let shortenTitle = '一条动态';
if (content) {
shortenTitle = content.length > 75 ? `${content.substr(0, 75)}...` : content;
+ content = `${content}
`;
}
if (item.type === 'REPOST') {
@@ -64,7 +65,7 @@ module.exports = async (ctx) => {
repostImgTemplate += `
`;
});
- let repostContent = `
转发 ${screenNameTemplate}: ${item.target.content}${repostImgTemplate}`;
+ let repostContent = `转发 ${screenNameTemplate}: ${item.target.content}${repostImgTemplate}`;
content = `${content}${repostContent}`.replace(/\n|\r/g, '
');
}