Skip to content
Snippets Groups Projects
Commit 6f242f22 authored by syuilo's avatar syuilo
Browse files

✌️

parent 42be937f
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment