clean up
This commit is contained in:
parent
312f46378d
commit
9c4f5a7435
|
@ -24,12 +24,11 @@ function truncateNotification(notification: Packed<'Notification'>): any {
|
||||||
...notification.note,
|
...notification.note,
|
||||||
// textをgetNoteSummaryしたものに置き換える
|
// textをgetNoteSummaryしたものに置き換える
|
||||||
text: getNoteSummary(notification.type === 'renote' ? notification.note.renote as Packed<'Note'> : notification.note),
|
text: getNoteSummary(notification.type === 'renote' ? notification.note.renote as Packed<'Note'> : notification.note),
|
||||||
...{
|
|
||||||
cw: undefined,
|
cw: undefined,
|
||||||
reply: undefined,
|
reply: undefined,
|
||||||
renote: undefined,
|
renote: undefined,
|
||||||
user: undefined as any, // 通知を受け取ったユーザーである場合が多いのでこれも捨てる
|
user: undefined as any, // 通知を受け取ったユーザーである場合が多いのでこれも捨てる
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue