From 65d81a4ae2f7b55517ff5f3c26d0b14751f81998 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Fri, 4 Oct 2024 20:57:30 -0400 Subject: [PATCH] Revert "fix incorrect populated object in followers endpoint" This reverts commit 7b9473bf4c0b55facede0e1d1e33297d14184110. --- .../backend/src/server/api/endpoints/federation/followers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/federation/followers.ts b/packages/backend/src/server/api/endpoints/federation/followers.ts index 29c5372033..42c0c29fa6 100644 --- a/packages/backend/src/server/api/endpoints/federation/followers.ts +++ b/packages/backend/src/server/api/endpoints/federation/followers.ts @@ -56,7 +56,7 @@ export default class extends Endpoint { // eslint- .andWhere('following.followeeHost = :host', { host: ps.host }); if (!await this.roleService.isModerator(me)) { - query.leftJoin(MiBlocking, 'blocking', 'blocking."blockerId" = following."followerId" AND blocking."blockeeId" = :me', { me: me.id }); + query.leftJoin(MiBlocking, 'blocking', 'blocking."blockerId" = following."followeeId" AND blocking."blockeeId" = :me', { me: me.id }); query.andWhere('blocking.id IS NULL'); }