fix: reactions being shown on muted/blocked users

Closes #342
This commit is contained in:
Marie 2024-01-26 01:00:12 +01:00
parent 4be70a8d98
commit 1bec69df16
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -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)));