remove no longer needed "as PackedUser/PackedNote"

This commit is contained in:
tamaina
2021-09-06 03:32:52 +09:00
parent c86ac1c6ec
commit 93fd76f841
6 changed files with 9 additions and 11 deletions

View File

@@ -95,7 +95,7 @@ export class NoteRepository extends Repository<Note> {
hide = true;
} else if (meId === packedNote.userId) {
hide = false;
} else if (packedNote.reply && (meId === (packedNote.reply as PackedNote).userId)) {
} else if (packedNote.reply && (meId === packedNote.reply.userId)) {
// 自分の投稿に対するリプライ
hide = false;
} else if (packedNote.mentions && packedNote.mentions.some(id => meId === id)) {