mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-25 07:37:13 +09:00
✌️
This commit is contained in:
parent
42be937fcb
commit
6f242f229a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user