Skip to content

Commit 067410d

Browse files
committed
fix
1 parent 1f50db3 commit 067410d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/frontend/src/scripts/entity-manager.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,14 @@ export class NoteManager {
163163

164164
const renote = note.renoteId ? this.getRaw(note.renoteId) : undefined;
165165
// renoteが削除されている場合はCASCADE削除されるためnullを返す
166-
if (!renote) {
166+
if (note.renoteId && !renote) {
167167
if (this.isDebuggerEnabled) console.log('NoteManager: compute note: renote is null', id, note.renoteId);
168168
return null;
169169
}
170170

171171
const reply = note.replyId ? this.getRaw(note.replyId) : undefined;
172172
// replyが削除されている場合はCASCADE削除されるためnullを返す
173-
if (!reply) {
173+
if (note.replyId && !reply) {
174174
if (this.isDebuggerEnabled) console.log('NoteManager: compute note: reply is null', id, note.replyId);
175175
return null;
176176
}

0 commit comments

Comments
 (0)