parent
067410d7d2
commit
5be41f1d77
|
|
@ -163,14 +163,14 @@ export class NoteManager {
|
||||||
|
|
||||||
const renote = note.renoteId ? this.getRaw(note.renoteId) : undefined;
|
const renote = note.renoteId ? this.getRaw(note.renoteId) : undefined;
|
||||||
// renoteが削除されている場合はCASCADE削除されるためnullを返す
|
// renoteが削除されている場合はCASCADE削除されるためnullを返す
|
||||||
if (note.renoteId && !renote) {
|
if (!renote) {
|
||||||
if (this.isDebuggerEnabled) console.log('NoteManager: compute note: renote is null', id, note.renoteId);
|
if (this.isDebuggerEnabled) console.log('NoteManager: compute note: renote is null', id, note.renoteId);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const reply = note.replyId ? this.getRaw(note.replyId) : undefined;
|
const reply = note.replyId ? this.getRaw(note.replyId) : undefined;
|
||||||
// replyが削除されている場合はCASCADE削除されるためnullを返す
|
// replyが削除されている場合はCASCADE削除されるためnullを返す
|
||||||
if (note.replyId && !reply) {
|
if (!reply) {
|
||||||
if (this.isDebuggerEnabled) console.log('NoteManager: compute note: reply is null', id, note.replyId);
|
if (this.isDebuggerEnabled) console.log('NoteManager: compute note: reply is null', id, note.replyId);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue