diff --git a/routes/jike/user.js b/routes/jike/user.js index 377f5020c7..1ae3a9fc28 100644 --- a/routes/jike/user.js +++ b/routes/jike/user.js @@ -32,6 +32,7 @@ module.exports = async (ctx) => { REPOST: '转发', ANSWER: '回答', QUESTION: '提问', + PERSONAL_UPDATE: '创建新主题', }; const linkMap = { @@ -40,6 +41,7 @@ module.exports = async (ctx) => { REPOST: `https://web.okjike.com/post-detail/${item.id}/repost`, ANSWER: `https://m.okjike.com/answers/${item.id}`, QUESTION: `https://m.okjike.com/questions/${item.id}`, + PERSONAL_UPDATE: `https://web.okjike.com/topic/${item.topic && item.topic.id}/official`, }; let linkTemplate = ''; @@ -97,6 +99,9 @@ module.exports = async (ctx) => { content = `${content}${answerContent}`.replace(/\n|\r/g, '
'); } else if (item.type === 'QUESTION') { content = `在主题 ${item.topic.content} 提出了一个问题:

${content}`; + } else if (item.type === 'PERSONAL_UPDATE') { + shortenTitle = item.topic.content; + content = ` 主题简介:
${item.topic.briefIntro.replace(/(?:\r\n|\r|\n)/g, '
')}`; } return {