use more bulk hints in NoteEntityService / UserEntityService, and run the packMany queries in parallel
This commit is contained in:
parent
5e7d0e9acc
commit
bd8cd8c4e4
7 changed files with 363 additions and 218 deletions
|
|
@ -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.');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue