Skip to content
Snippets Groups Projects
Verified Commit 1bec69df authored by Marie's avatar Marie
Browse files

fix: reactions being shown on muted/blocked users

Closes #342
parent 4be70a8d
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // 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)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment