Skip to content

Commit

Permalink
Fix: Change: Only moderators can show blocked user's post
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Mar 25, 2023
1 parent 4b27bf1 commit 630c7a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/endpoints/notes/renotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default define(meta, async (ps, user) => {
generateVisibilityQuery(query, user);
if (user) generateMutedUserQuery(query, user);
if (user && !user.isAdmin && !user.isModerator) {
generateBlockedUserQuery(query, me);
generateBlockedUserQuery(query, user);
}

const renotes = await query.take(ps.limit!).getMany();
Expand Down

0 comments on commit 630c7a9

Please sign in to comment.