From 5be41f1d77cd77e5ec7834de018b371096cda2fa Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 11 Aug 2023 15:38:18 +0000 Subject: [PATCH] Revert "fix" This reverts commit 067410d7d227f75ac94eac2b89669304f477e9d3. --- packages/frontend/src/scripts/entity-manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index 74947bf1bb..320d7cf748 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -163,14 +163,14 @@ export class NoteManager { const renote = note.renoteId ? this.getRaw(note.renoteId) : undefined; // renoteが削除されている場合はCASCADE削除されるためnullを返す - if (note.renoteId && !renote) { + if (!renote) { if (this.isDebuggerEnabled) console.log('NoteManager: compute note: renote is null', id, note.renoteId); return null; } const reply = note.replyId ? this.getRaw(note.replyId) : undefined; // replyが削除されている場合はCASCADE削除されるためnullを返す - if (note.replyId && !reply) { + if (!reply) { if (this.isDebuggerEnabled) console.log('NoteManager: compute note: reply is null', id, note.replyId); return null; }