summaryrefslogtreecommitdiff
path: root/src/common/get-post-summary.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/get-post-summary.ts')
-rw-r--r--src/common/get-post-summary.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/common/get-post-summary.ts b/src/common/get-post-summary.ts
index f628a32b41..ac15077b28 100644
--- a/src/common/get-post-summary.ts
+++ b/src/common/get-post-summary.ts
@@ -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) {