Implement delete note

This commit is contained in:
syuilo
2018-05-28 14:39:46 +09:00
parent 85114ebd74
commit ceda2ca896
15 changed files with 125 additions and 23 deletions

View File

@ -3,6 +3,10 @@
* @param {*} note (packされた)投稿
*/
const summarize = (note: any): string => {
if (note.deletedAt) {
return '(削除された投稿)';
}
if (note.isHidden) {
return '(非公開の投稿)';
}