From 1bec69df16fc7e8294f07d53a9b2c1f9cdf8283a Mon Sep 17 00:00:00 2001 From: Marie Date: Fri, 26 Jan 2024 01:00:12 +0100 Subject: [PATCH] fix: reactions being shown on muted/blocked users Closes #342 --- packages/backend/src/server/api/endpoints/notes/reactions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/backend/src/server/api/endpoints/notes/reactions.ts b/packages/backend/src/server/api/endpoints/notes/reactions.ts index a2c1778199..166dd450a6 100644 --- a/packages/backend/src/server/api/endpoints/notes/reactions.ts +++ b/packages/backend/src/server/api/endpoints/notes/reactions.ts @@ -74,6 +74,9 @@ export default class extends Endpoint { // eslint- query.andWhere('reaction.reaction = :type', { type }); } + if (me) this.queryService.generateMutedUserQuery(query, me); + if (me) this.queryService.generateBlockedUserQuery(query, me); + const reactions = await query.limit(ps.limit).getMany(); return await Promise.all(reactions.map(reaction => this.noteReactionEntityService.pack(reaction, me)));