summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/ReactionService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-06 02:33:38 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-06-09 11:02:36 -0400
commitbd8cd8c4e439e39b8253f9e63131eb50b82469c5 (patch)
tree605d25e45b37bde298e9ab11c941d6fe17a4391f /packages/backend/src/core/ReactionService.ts
parentfix typo in QueryService.generateBlockQueryForUsers (diff)
downloadsharkey-bd8cd8c4e439e39b8253f9e63131eb50b82469c5.tar.gz
sharkey-bd8cd8c4e439e39b8253f9e63131eb50b82469c5.tar.bz2
sharkey-bd8cd8c4e439e39b8253f9e63131eb50b82469c5.zip
use more bulk hints in NoteEntityService / UserEntityService, and run the packMany queries in parallel
Diffstat (limited to 'packages/backend/src/core/ReactionService.ts')
-rw-r--r--packages/backend/src/core/ReactionService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/ReactionService.ts b/packages/backend/src/core/ReactionService.ts
index c23bb51178..8d2dc7d4e8 100644
--- a/packages/backend/src/core/ReactionService.ts
+++ b/packages/backend/src/core/ReactionService.ts
@@ -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.');
}