use more bulk hints in NoteEntityService / UserEntityService, and run the packMany queries in parallel

This commit is contained in:
Hazelnoot 2025-06-06 02:33:38 -04:00
parent 5e7d0e9acc
commit bd8cd8c4e4
7 changed files with 363 additions and 218 deletions

View file

@ -122,7 +122,7 @@ export class ReactionService {
}
// check visibility
if (!await this.noteEntityService.isVisibleForMe(note, user.id)) {
if (!await this.noteEntityService.isVisibleForMe(note, user.id, { me: user })) {
throw new IdentifiableError('68e9d2d1-48bf-42c2-b90a-b20e09fd3d48', 'Note not accessible for you.');
}