Revert "fix incorrect populated object in followers endpoint"

This reverts commit 7b9473bf4c0b55facede0e1d1e33297d14184110.
This commit is contained in:
Hazel K 2024-10-04 20:57:30 -04:00 committed by Hazelnoot
parent 8f0df1f01c
commit 65d81a4ae2

View File

@ -56,7 +56,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
.andWhere('following.followeeHost = :host', { host: ps.host }); .andWhere('following.followeeHost = :host', { host: ps.host });
if (!await this.roleService.isModerator(me)) { 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'); query.andWhere('blocking.id IS NULL');
} }