This commit is contained in:
syuilo 2017-11-01 04:16:16 +09:00
parent 42be937fcb
commit 6f242f229a
1 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,13 @@
* @param {*} post 稿
*/
const summarize = (post: any): string => {
let summary = post.text ? post.text : '';
let summary = '';
// チャンネル
summary += post.channel ? `${post.channel.title}:` : '';
// 本文
summary += post.text ? post.text : '';
// メディアが添付されているとき
if (post.media) {