Compare commits

..

No commits in common. "b205f7746be652a4be56780c6fb368292fa9bcd7" and "4669054af852fba1196b3096e30345087fbe1c92" have entirely different histories.

1 changed files with 5 additions and 10 deletions

View File

@ -185,26 +185,21 @@ export class NoteManager {
const files = note.fileIds.map(id => driveFileManager.get(id)?.value);
const result = Object.assign({}, note, {
const result = {
...note,
user: user.value,
renote: renote?.value ?? undefined,
reply: reply?.value ?? undefined,
files: files.filter(file => file) as DriveFile[],
});
};
if (this.isDebuggerEnabled) console.log('NoteManager: compute note: not null', id, result);
return result;
}));
if (this.isDebuggerEnabled) {
console.log('NoteManager: get note (new)', id, this.notesComputed.get(id));
console.trace();
}
if (this.isDebuggerEnabled) console.log('NoteManager: get note (new)', id, this.notesComputed.get(id));
} else {
if (this.isDebuggerEnabled) {
console.log('NoteManager: get note (cached)', id, this.notesComputed.get(id), this.notesSource.value.get(id));
console.trace();
}
if (this.isDebuggerEnabled) console.log('NoteManager: get note (cached)', id, this.notesComputed.get(id), this.notesSource.value.get(id));
}
return this.notesComputed.get(id)!;
}