Implement delete note
This commit is contained in:
parent
85114ebd74
commit
ceda2ca896
15 changed files with 125 additions and 23 deletions
|
|
@ -3,6 +3,10 @@
|
|||
* @param {*} note (packされた)投稿
|
||||
*/
|
||||
const summarize = (note: any): string => {
|
||||
if (note.deletedAt) {
|
||||
return '(削除された投稿)';
|
||||
}
|
||||
|
||||
if (note.isHidden) {
|
||||
return '(非公開の投稿)';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue