diff --git a/packages/backend/src/server/api/endpoints/charts/user/following.ts b/packages/backend/src/server/api/endpoints/charts/user/following.ts index 711a2fd082..15b318fa89 100644 --- a/packages/backend/src/server/api/endpoints/charts/user/following.ts +++ b/packages/backend/src/server/api/endpoints/charts/user/following.ts @@ -60,16 +60,13 @@ export default class extends Endpoint { // eslint- done(); } - const iAmModerator = await this.roleService.isModerator(me); - - if (iAmModerator) { + if (me != null && me.id === ps.userId) { done(); } - if ( - (profile.followingVisibility === 'private' || profile.followersVisibility === 'private') && - (me != null && profile.userId === me.id) - ) { + const iAmModerator = await this.roleService.isModerator(me); + + if (iAmModerator) { done(); }